Democratic and Republican leaders in the US Congress presented a short-term spending bill on Sunday to avoid a so-called shutdown — the suspension of many federal government services — until March.

The bill is intended to avert the risk of chaos in the short term and to buy time to draw up a broader finance bill.

Government agencies responsible for transport and transit, housing and other services will see their funding run out at midnight on Friday and will be forced to suspend much of their operations unless a new one is approved.

The Senate and House of Representatives have been at loggerheads over the level of government spending for months.

A deal on the short-term bill was reached between Senate Democratic Leader Chuck Schumer, Republican House Speaker Mike Johnson, Senate Republican Leader Mitch McConnell and House Democratic Leader Hakeem Jeffries.

But the deal may face resistance in the House of Representatives, where a hard-line Republican faction has long pushed in various ways to cut public spending.

The Republicans have a slim majority in the lower House (219-213), which means that Mr. Johnson does not have much leeway. Some members of his caucus insist that any measure on public spending must be accompanied by a toughening of Washington’s policy on migrants at the Mexican border.

Current funding runs out within the week for federal programs covering transportation and transportation, agriculture, energy, veterans and Defense Department construction projects.

Funding for other sectors of the state, notably defense, will continue until February 2.

The temporary funding bill would extend the deadline to March 1 for the first sector and March 8 for the second.

Mr. Schumer, the Democratic majority leader in the Senate, and Mr. Johnson, the speaker of the Republican-controlled House of Representatives, agreed that the bill would spend $1.59 trillion. dollars.

This will give parliament more time to negotiate and pass a more detailed spending bill, which would normally have been approved before the fiscal year begins (on October 1, 2023).

The bill covers roughly one-third of US government spending, which amounted to $6.1 trillion. dollars last fiscal year.

The remaining two or three include pensions and health benefits that do not need to be approved annually by Congress, as well as interest payments.

Mr. Johnson spent much of last week meeting with hardliners and others in the Republican caucus, prompting speculation that he could seek to renegotiate the deal with Mr. Schumer. But in the end the “speaker” did not question it.

The federal government came perilously close to a shutdown in the fall, when hard-line Republicans fired former House Speaker Kevin McCarthy over a temporary government funding deal struck with Mr. Schumer.