But the push to pass the massive legislation early Friday underscored enduring divisions within both parties.
"Democrats have fought hard but, in the end, many opted to say yes to other priorities and leave Dreamers behind", said Frank Sharry, executive director of the pro-immigration America's Voice. Only 73 Democrats voted for the bill; 67 Republicans voted against it. He called that decision plus opposition by many Republicans "inhumane and indecent". Ryan hasn't scheduled House consideration, infuriating Democrats, but he said Friday, "We will focus on bringing that debate to this floor and finding a solution".
It also extends the US government's borrowing authority until March 2019, sparing Washington politicians hard votes on debt and deficits until after mid-term congressional elections in November.
"You can make a case that it seems to be a little hypocritical because we ranted and raged during the eight years of Obama about the national debt", said Walker, who said he will vote against the budget bill.
Mr Trump tweeted that he had signed the bill, writing that the U.S. military "will now be stronger than ever before".
Kim Jong Un invites South Korean president for talks in the North
A big one could be a demand to cease the U.S. -South Korean war games that North Korea claims are preparation for invasion. The two Koreas technically remain at war as the 1950-53 Korean War ended with an armistice, not a peace treaty.
Rand Paul, protesting the return of trillion-dollar deficits on the watch of Republicans controlling Washington, blocked a vote on the approximately $400 billion spending measure, which is married to a six-week temporary funding bill need to prevent the shutdown and provide time to implement the budget pact. But Rep. Luis Gutierrez, D-Ill., said anyone supporting the spending measure was "colluding with this president and this administration to deport Dreamers". The plan could demoralize some Republican voters, hurting the party's efforts to keep its majorities in the House and Senate, they said.
With the immigration fight looming, Congress voted overnight to finance the government through March 23, giving budget-writers time to craft detailed legislation funding agencies through the rest of this fiscal year.
Congress had missed a midnight deadline when a conservative senator refused to allow an early vote on the compromise bill, but now a signature by Trump, who supports the deal, will reopen government offices.
Paul, a Kentucky Republican, said the overall budget bill that includes the stopgap measure would "loot the Treasury".
After Senate action, the House vote could come before dawn, making the shutdown a short one.