Congress has voted to prevent a government shutdown as the House and Senate in rapid succession approved a stopgap spending bill to keep agencies running through Jan. 19.
The Senate's 66-32 vote sent the temporary funding bill to President Donald Trump with time to spare before a Friday midnight deadline. He has said he will sign it and encouraged lawmakers on Twitter to "keep our Government OPEN!"
The Senate vote followed a deceptively difficult 231-188 tally in the House that followed days of wrangling. Democrats generally opposed the measure, seeking protections for immigrants brought to the U.S. illegally as children.
The measure punts most of Capitol Hill's unfinished business until January, including immigration, a potential budget agreement and health care. Then, Democrats are poised to have greater influence.
The House has narrowly passed a short-term spending bill, the first step as the Republican-led Congress tries to avert a government shutdown at midnight Friday.
The vote was 231-188 on Thursday. The stopgap bill keeps money flowing to the Pentagon and domestic agencies through Jan. 19.
The Senate still must vote.
Lawmakers were rushing to complete the bill while they punted on more contentious issues, leaving fights over health care, immigration and national security until next year.
The spending bill is combined with a $2.1 billion fix for an expiring program that pays for veterans to seek care outside the Department of Veterans Affairs system and a temporary fix to ensure states facing shortfalls from a children's health program won't have to purge children from the program.
It also contains a short-term extension for an expiring overseas wiretapping program aimed at tracking terrorists.