A federal judge has cleared the way for the Trump administration to pull thousands of USAID staffers off the job.