Government regulations announced this week will shut out foreign law students who are taking classes online this fall—a move experts say is intended to pressure colleges and universities to return to campus.