Congress has passed a temporary funding measure that will keep federal agencies operating until the new year, days before the US faced a government shutdown.
The Senate passed the stopgap bill by a vote of 87-11 on Wednesday night after the House passed it earlier this week.
President Joe Biden is expected to sign the bill before the Friday deadline.
This is the second time this year Republican dissension has brought government to the brink of shutdown.
Senate Majority Leader Chuck Schumer, a Democrat, celebrated after the vote, saying that “this Friday night there will be no government shutdown”.
“Because of bipartisan cooperation, we are keeping the government open without any poison pills or harmful cuts to vital programmes – a great outcome for the American people,” he said.
Congress does not have much time to act, however, and there remains intense divisions on Capitol Hill.
Read more at BBC.com