Lawmakers Reach a Budget Deal