Hours after the White House meeting, Judge William Alsup of Federal District Court in San Francisco wrote that it was not proper to kill the program, and that the administration must “maintain the DACA program on a nationwide basis” as the legal challenge to the president’s decision in September to end the program moves forward.

Mr. Trump has previously criticized the courts system after judges have halted or held up his policy initiatives.

Ms. Sanders said the fate of the program should be addressed by Congress.

“President Trump is committed to the rule of law, and will work with members of both parties to reach a permanent solution that corrects the unconstitutional actions taken by the last administration,” Ms. Sanders said.