US President Donald Trump has said a tentative deal has been reached to end the government shutdown which has seen around 800,000 federal workers left without pay in the longest shutdown in US history.
Mr Trump said he would sign a bill to reopen government for three weeks, until 15 February.
He said he would ask the Senate Republican leader to put a proposal on the floor for a vote immediately.
The US government shutdown began five weeks ago over a row between Democrats and Republican for a border wall between the US and Mexico.
During the announcement at the White House, Mr Trump defended the border wall project, but made no reference to his demand for $5.7 billion to fund it.
"I am very proud to announce today that we have reached a deal to end the shutdown and reopen the federal government," Mr Trump said.
"In a short while, I will sign a bill to open our government for three weeks until 15 February. I will make sure that all employees receive their back pay very quickly, or as soon as possible," he said.
He said that in the meantime a bipartisan committee would meet to discuss the nation's border security needs.
Mr Trump later said he would declare a national emergency if he did not eventually reach a deal with Democrats on border security.
Declaring an emergency could allow Mr Trump to circumvent Congress and repurpose funds Congress has appropriated for other purposes in order to build a wall.
The US Senate's top Democrat Chuck Schumer, declaring victory in a successful negotiation, has said he hopes President Trump "learned his lesson" about the perils of a government shutdown.
Yesterday, the US Senate rejected two shutdown-ending bills.
Democrats had demanded a reopening of the government before any negotiations with Mr Trump and his Republican allies in Congress on border security.
Democrats, who hold majority in the House of Representatives, are against the wall on the grounds that it would be costly, ineffective and immoral.
Mr Trump, whose Republicans have a majority in the Senate, has said it is necessary to curb illegal immigration and drug trafficking.