Washington (CNN) The Trump administration won a victory in court Monday on its plan to end the Deferred Action for Childhood Arrivals program, but not before a federal judge criticized the White House and Congress for failing to work together.

The ruling is a relatively symbolic win after two other federal courts have already halted the President's effort to end the program nationwide.

Still, the administration is hailing the ruling as evidence that it has the authority to terminate DACA, a program that protected young undocumented immigrants who came to the US as children from deportation, as President Donald Trump decided in September.

In a 30-page opinion, Maryland District Judge Roger Titus rejected a challenge to the termination of DACA, saying the administration did in fact have a "reasonable" justification given it concluded the program was likely unlawful.

Previous judges have found the opposite -- that there's a plausible argument the government's reasoning in this case was "arbitrary and capricious."

Read More