The announcement brings relief to thousands of foreign students who had been at risk of being deported from the country.