A federal judge had blocked Trump from maintaining control over the troops used to quell riots in Los Angeles.