President Donald Trump agreed under mounting pressure on Friday to end a 35-day-old partial US government shutdown without getting the $5.7 billion he had demanded from Congress for a border wall, handing a political victory to Democrats, Reuters reported.

The three-week spending deal reached with congressional leaders, quickly passed by the Republican-led Senate and the Democratic-controlled House of Representatives without opposition and Trump signed the deal.

But Trump vowed that the shutdown would resume on February 15 if he is dissatisfied with the results of a bipartisan House-Senate conference committee’s border security negotiations, or he would declare a national emergency in order to get the wall money without congressional approval.

The lapse in funding shuttered about a quarter of federal agencies, with about 800,000 workers either furloughed or required to work without pay. Many employees as well as contractors were turning to unemployment assistance, food banks and other support. Others began seeking new jobs.