Trump shut the gov't down when his party controlled both houses. The Dems (rightfully) refused to negotiate while Trump held the gov't hostage. He painted himself in a corner and for the first time in his presidency seems to have recognized the mistake.
Hopefully we can now get a real immigration fix like trading the wall for permanent DACA protection.