A federal judge said she plans to grant a preliminary injunction to stop the Trump administration from restricting foreign students from enrolling.