
Democrats and Republicans have agreed to a deal which will end the US government shutdown.
The federal government partially shut down on Friday after a funding deadline ran out because the two parties had failed to agree on a deal.
It meant a number of services were forced to close because they were left without staff.
In a dramatic turnaround on Monday afternoon, Democratic senators announced they had agreed to a deal with the Republicans which paves the way to reopen the federal government with a temporary funding bill.
Senate minority leader Chuck Schumer, the party's most senior senator, announced that the party would vote to advance a plan to reopen the government.

The deal means the Republicans will promise to hold a vote on an immigration bill which would protect an estimated 800,000 undocumented child migrants from deportation in exchange for the Democrats agreeing to end the shutdown.
Democrats were initially deeply skeptical of the pledge, but indicated after a party meeting that they are willing to trust the Senate majority leader, Republican Mitch McConnell.

It paves the way for a three-week government funding bill which will keep services running until February 8.
Mr Schumer said: "The Republican party controls the house, the senate, the presidency, and yet they were unable to keep the government open for the American people.
"These days you never know who to deal with when it comes to the Republicans."

"After several discussions, offers and counteroffers, the Republican leader and I have come to an arrangement," he went on.
"We will vote today to reopen the government to continue negotiating a global agreement.
"The Republican majority now has 17 days to prevent the Dreamers from being deported."

He added: "The shutdown will soon end, but the work must go on. And it will."
The temporary funding bill is expected to be passed by the Senate and the House today and signed into law by President Trump in the next few hours.
Over the weekend Mr Trump had goaded Democrats from the sidelines, accusing them of shutting down the government to win concessions on immigration, in service of "their far left base."
"They don't want to do it but are powerless," he tweeted, referring to Mr Schumer and other Democratic leaders.
But on Monday Mr Schumer lashed out at Trump, taking the Senate floor he said that it was time to get back to work.
"The great deal-making president sat on the sidelines," he said.