The measure, which passed in the House of Representatives last week by an overwhelming margin, passed the Senate by a vote of 64 to 36. Nine Republicans supported the measure while three others, Sens. Roy Blunt of Missouri, Lamar Alexander of Tennessee and Jeff Flake of Arizona, who Wednesday joined with Democrats to send the bill to the full vote, voted against the final bill.
The deal does not include an extension for benefits for the 1.3 million long-term unemployed, which expire on December 28.
And while the budget goes a long way to help avoid another government shutdown, both chambers of Congress must still pass military and domestic spending legislation by January 15.