Most staff in the departments of housing, environment, education and commerce will stay at home. Half of workers in the treasury, health, defence and transportation departments will also not be going to work on Monday.

National parks and monuments could face closure, which provoked an angry public reaction during the last shutdown in 2013.

Republicans added a sweetener to the bill in the form of a six-year extension to a health insurance programme for children in lower-income families.

But Democrats want this programme extended permanently.

The legislative negotiations went up in flames last week after Mr Trump allegedly complained the US was letting in immigrants from certain “shithole countries”.

What happened during the 2013 shutdown?

Many federal employees were forced to take a leave of absence – officially known as being furloughed – during the 16 days of shutdown.

At its peak, some 850,000 employees were off work each day. The cost, in salaries alone, was $2bn and led to “significant negative effects on the economy”, according to the Office of Management and Budget.

At the time, Donald Trump laid the blame for the shutdown with the then president, Barack Obama.

“The problem start from the top and have to get solved from the top,” he told Fox and Friends. “The president is the leader, and he’s got to get everybody in a room and he’s got to lead.”