President Donald Trump brought a temporary end to the longest government shutdown in US history, while dropping his previous insistence on immediate funding for wall construction along the Mexican border.

After 35 days, he backed a deal to fund federal agencies for three weeks, but it includes none of the money he has demanded for a Us-Mexico border wall.

The announcement in the white house rose garden on the bipartisan deal marked a retreat by Trump, suspending a political row that has paralyzed Washington, disrupted air travel and left more than 800,000 federal employees without pay for five weeks.

Speaker of the house, Democrat Nancy Pelosi signed the bills to reopen the U.S. Government.

The bill had first passed the republican-led senate and then headed to the democratic-controlled house of representatives, paving the way for tough talks with lawmakers about how to address security along the U.S.-Mexican border.