The terminations, which were made from a database used by universities and the federal government to track foreign students in the US, had caused panic among the affected students.