The bill faced similar opposition in the House from fiscal conservatives who saw it as a broken promise to their base.
Republican Senator Rand Paul, objecting to deficit spending in the bill, engaged in a nine-hour, on-again, off-again protest and floor speech late on Thursday that delayed passage of the deal past the midnight hour, when funding for the government officially ran out.
The Kentucky Republican, using charts to demonstrate myriad examples of wasteful government spending, acknowledged that he was unlikely to change the outcome of the measure in the Senate, where it was expected to pass.
"The new two-year spending package will mean more money for the military, potentially boosting procurement contracts for defense contractors".
It would also lift the federal debt limit until March 2019 and includes nearly $90 billion in disaster relief in response to last year's hurricanes and wildfires. The House will not vote on the deal until the Senate approves it. Trump has called for stricter limits on extended family migration, an end to the visa "lottery" system and a wall along the Mexican border, which the minority party has opposed.
"Democrats worked hard to achieve a bipartisan agreement and gave our assurances to the Speaker that we were not interested in shutting down government", Pelosi said in a statement after the vote. "This bill reverses that trend and will ensure those who serve will have what they need to keep our country safe", said Banks. Senate Majority Leader Mitch McConnell did not allow for the amendment to be added, triggering the short shutdown. "I didn't come up here to be liked", Mr Paul said.
In debate on the House floor, most Democrats focused on the issue of DACA and the Dreamers, demanding a vote on legislation dealing with that immigration matter. The budget deal approved by Congress matters a lot to the Pentagon, and for domestic programs for opioids, health centers and research funding.
"American families with children who benefit with chip will now be able to rest easy for the next decade", Schumer said. "It was very disappointing", she said.
The most Ryan would give them was an assurance that he would bring immigration legislation to the floor that Trump would sign into law.
"The reason I'm here tonight is to put people on the spot", Paul said.
But frustrations were clear in both sides of the Capitol, where just hours earlier leaders had been optimistic that the budget deal was a sign they had left behind some of their chronic dysfunction. Like kids scrambling to clean up before Mom and Dad get home, lawmakers then had to rush to turn the lights back on before federal employees were due to report to work.