Fate of USAID in question as judge sets back Trump’s efforts to dismantle agency