However, the Trump administration could appeal Alsup's ruling.
Justice Department spokesman Devin O'Malley issued a statement last night:
"Tonight's order doesn't change the Department of Justice's position on the facts: DACA was implemented unilaterally after Congress declined to extend these benefits to this same group of illegal aliens. As such, it was an unlawful circumvention of Congress, and was susceptible to the same legal challenges that effectively ended DAPA.
"The Department of Homeland Security therefore acted within its lawful authority in deciding to wind down DACA in an orderly manner. Promoting and enforcing the rule of law is vital to protecting a nation, its borders, and its citizens. The Justice Department will continue to vigorously defend this position, and looks forward to vindicating its position in further litigation."
The judge's ruling came hours after Trump met with lawmakers at the White House to discuss the DACA program and other immigration issues.
NPR's Brian Naylor reported:
"Trump told a bipartisan group of lawmakers on Tuesday that he wants a bill to allow young immigrants who were brought to the country illegally to remain, saying that such a measure should be "a bipartisan bill of love" and that "we can do it."
"As to what sort of immigration legislation he would approve, Trump said that he was reliant on lawmakers and that even if they produced legislation he wasn't "in love with," he would still support it. He also said he would take the heat for both Republicans and Democrats if they get criticism over a compromise immigration measure, adding that his "whole life has been heat" and that to a certain extent he prefers it that way."
The president also addressed the issue of a border wall with Mexico, saying the U.S. needs one "in certain areas obviously that aren't protected by nature" and where existing fences are in bad shape and need to be fixed or rebuilt.
But Trump also added, "There are large areas where you don't need a wall."