(CNN) – The Trump administration has rescinded its policy that would bar international students who only take online courses from staying in the US, a federal judge announced Tuesday in Boston.

The decision comes a little over a week after Immigration and Customs Enforcement announced that students at schools offering only online courses due to the coronavirus pandemic would need to either leave the US or transfer schools.

One person familiar with the matter told CNN the White House has felt the blowback to the proposal and that some inside the West Wing believe it was poorly conceived and executed.

According to another source, the White House is now focused on having the rule apply only to new students, rather than students already in the US. The White House declined to comment on an ongoing policy process.

According to US District Judge Allison Burroughs, the administration will return to the policy that was in effect in March, which provided more flexibility for students enrolled in schools that switched to all-online courses because of the pandemic.

For now, though, the move to drop the policy is a reprieve for more than 1 million international students in the US. In the last week, students had expressed frustration and concern over their next steps, as universities and colleges announced decisions to move all courses online.