A federal judge has temporarily blocked the Trump administration from placing 2,200 employees of the US Agency for International Development on paid leave.