A federal judge ruled DHS unlawfully seized the Federal Emergency Management Agency's authority over staffing and pushed thousands of job cuts.