A Korean American Columbia University student, who is a legal permanent US resident and has participated in pro-Palestinian protests, cannot be detained by federal immigration officials for now as she fights the administration of President Donald Trump over attempts to deport her, a judge has ruled.

US District Judge Naomi Reice Buchwald issued a temporary restraining order against the government that prevents Chung from being detained, court records showed.

According to Reuters, 21-year-old Yunseo Chung has lived in the US since she was seven, and sued the Trump administration on Monday to prevent her deportation. Her legal team was informed this month that her lawful permanent resident status was being revoked, according to court records in the US District Court for the Southern District of New York.

The US Department of Homeland Security (DHS) alleged Chung engaged in concerning conduct, including when she was previously arrested by police during a protest at Barnard College that DHS termed “pro-Hamas”.

Chung has not yet been arrested by federal officials. Immigration agents made multiple visits to her residences looking for her.