A Massachusetts federal judge on Friday granted a restraining order to Harvard University temporarily blocking the Trump administration from enforcing a ban on enrolling foreign students, hours after the school filed a suit calling the move unconstitutional and retaliatory.