A federal judge on Friday blocked the Trump administration from revoking legal protections for more than 2,800 Yemeni nationals.