(CNN) A federal judge on Friday upheld his order that the Deferred Action for Childhood Arrivals program should be fully restored, setting a 20-day deadline for the administration to do so.

DC District Judge John Bates said the Trump administration still has failed to justify its proposal to end DACA, the Obama-era program that has protected from deportation nearly 800,000 young undocumented immigrants brought to the US as children.

But Bates agreed to delay his ruling for 20 days to give the administration time to respond and appeal, if it chooses.

The ruling sets up potentially conflicting DACA orders from federal judges by the end of the month.

The decision comes less than a week before a hearing in a related case in Texas. In that case, Texas and other states are suing to have DACA ended entirely, and the judge is expected to side with them based on his prior rulings.

Read More