U.S. President Donald Trump signed a government spending bill Monday evening that ends a three-day partial shutdown, White House official said. But that leaves the fight over a politically charged immigration proposal unresolved for at least another three weeks.

The impasse broke after Senate Democrats accepted a deal from Majority Leader Mitch McConnell that will fund the government through Feb. 8. In exchange, McConnell agreed to address Democratic demands that Congress restore protection against deportation to young undocumented immigrants brought to the U.S. as children, known as "dreamers."

"I am pleased that Democrats and Republicans in Congress have now come to their senses," Trump said in a statement read earlier Monday at the White House briefing. "We will make a long term deal if and only if it's good for our country."