The ruling came in a lawsuit brought by student newspaper at Stanford University which raised concerns over impact of administration's immigration policies on students.