Trump’s funding cuts hurt students and research, seen as political. A judge ruled some cuts illegal, protecting academic freedom.