The bill now heads to President Donald Trump for his expected signature.
As the stopgap moves across Capitol Hill, congressional leaders of both parties are scheduled to go to the White House Thursday afternoon to begin talks with Trump on a long-term spending pact.
If Trump and the lawmakers can agree on overall budget limits, one option would be to put that into a second short-term spending bill to keep the government open from December 22 into sometime in January.
The conservative House Freedom Caucus is pushing Ryan to try to force Democrats to accept higher military funding without any increase in domestic funding. Rep. Mark Meadows, the chair of the Freedom Caucus, ended up voting for the bill along with numerous members.
The House passed the bill 235-193, with 18 Republicans voting no and 14 Democrats voting yes, and the Senate passed the bill soon after 81-14, with six Republicans, seven Democrats and one independent who caucuses with the Democrats (Bernie Sanders of Vermont) voting no. Mr. Trump wants increases for the military - Mr. Mattis spoke about readiness in the Situation Room - while Democrats want to protect 800,000 immigrant "Dreamers" who were brought to the USA illegally as children, raising the specter of a shutdown showdown. Previously, Democratic leaders Chuck Schumer and Nancy Pelosi backed out due to a tweet from Trump attacking the pair for their shutdown bill requests.More news: Phil Bredesen planning run for Corker's US Senate seat
More news: NBA Trade: Sixers reportedly send Jahlil Okafor, Stauskas to Nets for Booker
More news: Pujara unsure what ails India's erring slip cordon
Mr. Trump has rescinded the so-called DACA deportation amnesty that was ordered by former President Barack Obama, leaving Congress until March to act, but some Democrats want to deal with it now.
"They say they're going to fight on the 22nd".
Schumer denied that Democrats are eager to force a confrontation.
It took until the last minute for Ryan to find support within the GOP to pass the bill. Democrats (and some Republicans) are looking to include a number of other legislative priorities ― Obamacare subsidies, a reauthorization of the Children's Health Insurance Program, as well as a fix for the Deferred Action for Childhood Arrivals immigration program ― and negotiations on those items could be just as tricky as the spending agreement.
Ryan declined Thursday to confirm any such deal; Pelosi said it would be a nonstarter for Democrats.