US President Donald Trump on Monday claimed victory after Democrats agreed to a stopgap deal to reopen US government offices and end a political crisis in Washington.
"I am pleased Democrats in Congress have come to their senses" Trump said in a defiant statement, as Senate lawmakers moved to get hundreds of thousands of federal government employees back to work.
Democrats said they decided to end the three-day "shutdown" after making progress with ruling Republicans toward securing the fate of hundreds of thousands of so-called "Dreamers" brought to America illegally as children.
With Democratic support, a bill keeping the government funded until Feb 8 easily passed the Senate, with the shutdown to formally end after approval later Monday by the House of Representatives, where the number two Republican Kevin McCarthy said it had the support to pass.
"Hopefully, we learn a lesson from this. Hopefully it never comes back to holding the government hostage," McCarthy said.
Word of the compromise deal struck in Washington sent US stocks surging to new highs.
But the White House appeared in no mood for bipartisanship or magnanimity after a shutdown that overshadowed Trump's first anniversary in office.
Trump moved to undercut Democrats, saying he would only accept a comprehensive immigration reform - one that notably addresses his demands for a border wall with Mexico as well as the fate of the "Dreamers."
"We will make a long-term deal on immigration if, and only if, it is good for our country," he said.
Agencies