Top congressional leaders on struck a partial to temporarily avert a on Wednesday.
Leaders including House Speaker Mike Johnson, R-La., and Senate Majority Leader Chuck Schumer, D-N.Y., secured an agreement for six funding bills, four of which were to expire Friday.
Those bills and their corresponding agencies, which included agriculture, veterans affairs and housing, will now remain funded through March 8. The rest of the government's funding will be extended to March 22.
"We are in agreement that Congress must work in a bipartisan manner to fund our government," leaders said in a joint statement.
The House is expected to vote on the deal as early as Thursday, with the Senate to follow and Biden to sign after that.
The funding extensions are intended to give Congress "adequate time" to draft language for the agreed-upon bills, give congress members time to review the text and conduct other technical legislative processes, the joint statement said.
Johnson had only agreed to extend those funding deadlines if an agreement on the six bills could be reached, according to a person familiar with the negotiations. Otherwise, the government could have headed into partial shutdown on Saturday.
Government shutdowns do not tend to move markets significantly, though they can stoke perceptions of economic uncertainty.
Congressional leaders had been optimistic about getting the deal settled, especially after a Tuesday White House meeting with President Joe Biden and Congress' top four leaders, including Johnson.
This is the fourth time this fiscal year that Congress has had to pass a short-term spending bill to keep the government funded and avert a near-miss shutdown.
Don't miss these stories from CNBC PRO: