Under Tuesday's ruling, the government must accept renewal applications only from people previously approved for the Deferred Action for Childhood Arrivals program, not from people who were eligible but never applied.
Trump a year ago announced his plan to end DACA, the policy that allowed undocumented immigrants brought to the United States as children to stay in the country, effective March 5.
U.S. District Judge Nicholas Garaufis in Brooklyn ruled that the Deferred Action for Childhood Arrivals programme, or DACA, can not end in March as the Republican administration had planned, a victory for Democratic state attorneys general and immigrants who sued the federal government.
A second USA judge on Tuesday blocked an order by President Donald Trump to end a program protecting from deportation migrants who had been brought illegally to the country as children.
"Defendants indisputably can end the DACA program", the judge wrote in Tuesday's opinion.
Both immigrant-rights groups and homeland security officials said the new ruling has the same effect as the California judge's decision. He declined to extend the programme for new applicants.
The two court rulings allow for DACA to temporarily remain in force, allowing program recipients to submit renewal applications. The court could announce as soon as Friday afternoon whether it will hearing the case. Garaufis' decision was met with praise from Karen Tumlin of the National Immigration Law Center, who said, "Today's ruling shows that courts across the country agree that Trump's termination of DACA was not just immoral, but unlawful as well". He then offered Congress to come up with a permanent solution by March.
"Reliance on this "litigation risk" rationale would have been arbitrary and capricious, in light of defendants' failure to explain their decision or to consider any factors that might have weighed against ending the DACA program", he said. But he followed that up by ruling that the government still had to accept renewal applications from people now in the program. "As such, it was an unlawful circumvention of Congress", the Justice Department said in a statement.