Late on Friday, Trump signed the bill, which will provide funding through February 15 and end the longest government shutdown in the US history.
Earlier in the day, in an apparent about-face on his demand for the wall funding, Trump announced that a deal had been reached.
"I am very proud to announce today that we have reached a deal to end the shutdown and reopen the federal government," Trump said at the White House.
Trump said in the meantime a bipartisan committee of legislators would meet to discuss the nation's border security needs.