The Trump administration said Friday that it will restore, for now, foreign students’ visa records after having abruptly terminated thousands of them in an online database, a move that spurred dozens of federal lawsuits from frantic students worried about their immigration status.