Judge blocks US govt from ending legal status of foreign students