A federal judge stopped the Trump administration on Monday from rescinding deportation protections and work permits for more than a half-million Cubans, Haitians, Nicaraguans and Venezuelans who were granted entrance into the United States under a humanitarian parole program during the Biden presidency.

U.S. District Judge Indira Talwani ruled, after a hearing last week, that the paroled migrants can stay in the United States as they pursue immigration benefits. In effect, her ruling will prevent the Department of Homeland Security’s secretary, Kristi Noem, from revoking their parole status as part of an administration plan to end the humanitarian program on April 24.

“While [Trump administration officials] are correct that the Secretary’s discretion in this area is broad, their conclusion that the Secretary’s actions are wholly shielded from judicial review is incorrect,” Talwani wrote in in a 41-page order filed in Boston federal court.