A federal judge said that faculty members were being affected in their teaching and research by the Trump administration’s pressure campaign.