The US Senate has approved a two-year federal budget deal that includes big spending increases.
The bill, which has already been passed by the House of Representatives, will suspend government borrowing limits until the end of July 2021.
It has yet to be signed by President Donald Trump, who campaigned for it despite opposition from conservatives.
Lawmakers said it would avert a budget crisis in the run-up to next year’s presidential election.
However, it looks certain to add to already high levels of US government debt, which already stands at $22.5tn.
The agreement sets government spending at $1.37 trillion (£1.12tn) for the next financial year, beginning in October.
President Trump has described the deal as “phenomenal” and encouraged sceptical Republicans to “go for it”.
“There is always plenty of time to CUT!” Mr Trump tweeted ahead of the vote.
Before the vote was held, the outcome appeared to be in the balance – Republican Senate Majority Leader Mitch McConnell refused to confirm what numbers would vote in its favour.
“It’s going to pass,” he told CNN, without going into detail about how each senator in his caucus planned to vote.
After it passed, Mr McConnell said the legislation “ensures our federal government will not approach any kind of debt crisis in the coming weeks or months”.
It passed by 67 votes to 28 with cross-party support, despite some opposition from conservative Republicans who were concerned at the high levels of spending.
The final vote from Republicans was 30 in favour, and 23 opposed. Five Democrats also voted against it.
One Republican senator, Rand Paul, who voted against the bill, told Breitbart News: “This may well be the most fiscally irresponsible thing we’ve done in the history of the United States.”
“What is irresponsible is a Congress that believes they are Santa Claus and they can be everything to everyone and everything is free,” he continued.
Under the bill, defence spending will go up from $716bn this year to $738bn next year, while non-defence spending will rise from $605bn to $632bn.
Treasury Secretary Steven Mnuchin had warned that if the bill failed to pass, the government could run out of money during the summer Congressional recess, triggering another government shutdown.
The last time that happened, in January, it cost the US economy an estimated $3bn.