A federal appeals court on Friday ruled against the Trump administration’s decision to end the Obama-era Deferred Action for Childhood Arrivals program, finding the move was arbitrary and capricious.

A divided panel for the U.S. Court of Appeals for the Fourth Circuit said that the Department of Homeland Security’s move violated the Administrative Procedure Act because it did not offer a sufficient explanation for winding down DACA, which deferred deportation for certain noncitizens who came to the U.S. as children.