The House has narrowly passed a sweeping bipartisan budget accord, ending an hours-long government shutdown and clearing a path for huge spending increases for both the Pentagon and domestic programmes.
The 240-186 vote sends the US$400 billion spending plan to President Donald Trump, who has promised to sign it. Once he signs the bill into law, it would restrict the nation's second government shutdown in three weeks to just a matter of hours.
The government shut down at midnight on Thursday after Republican senator Rand Paul blocked plans for a quick Senate vote on a compromise bill, blaming his fellow Republicans for being "complicit" in the looming return of trillion-dollar budget deficits.
Moving legislation swiftly through the upper chamber of Congress required consent by all 100 members.
Senators later voted 71-28 to approve the deal, easily overcoming objections from Republican fiscal conservatives who say the bill marks a return to unchecked deficit spending.