The judge rejected the government’s assertion that the Deferred Action for Childhood Arrivals program was unlawful.