NEWARK, N.J. — A federal judge ruled that the government must release , the former Columbia University graduate student whom the Trump administration is trying to deport over his participation in pro-Palestinian demonstrations.

Student negotiator Mahmoud Khalil is seen April 29, 2024, at a pro-Palestinian protest encampment on the Columbia University campus in New York.
Federal immigration agents March 8 in the lobby of his university-owned apartment — the first arrest under President Donald Trump's crackdown on students who joined campus protests against the war in Gaza.
He then was flown across the country and taken to an immigration detention center in Jena, Louisiana, thousands of miles from his attorneys and wife, a U.S. citizen who while he was in custody.
People are also reading…
Khalil's lawyers challenged the legality of his detention, accusing the Trump administration of trying to crack down on free speech. U.S. Secretary of State Marco Rubio says he has the power to deport Khalil because his presence in the U.S. could harm foreign policy.
U.S. District Judge Michael Farbiarz earlier ruled that expelling Khalil from the U.S. on those grounds was likely unconstitutional.
In a new ruling Wednesday, the judge said Khalil showed that his continued detention is causing irreparable harm to his career, family and free speech rights.
Farbiarz gave the government until Friday to appeal the decision. He also required Khalil to post a $1 bond before he is freed.
"The court's decision is the most significant vindication yet of Mahmoud's rights," said Ramzi Kassem, co-director of CLEAR, a legal nonprofit and clinic at the City University of New York that represents Khalil. "But we aren't out of the woods until Mahmoud is free and back home with his wife and child."
Lawyers and spokespersons for the Justice Department, which are handling the case, didn't immediately respond to an email seeking comment.

Protesters and members of the Jewish Voice for Peace gather April 14, 2025, in support of Columbia graduate student Mahmoud Khalil outside the Federal Plaza in New York.
The judge's decision came after several other legal residents targeted for their activism won custody in recent weeks, including another Palestinian student at Columbia, , a Tufts University student, , and a Georgetown University scholar, .
Rubio cited a rarely used statute to justify the deportation of Khalil and others, which gives him power to deport those who pose "potentially serious adverse foreign policy consequences for the United States."
Khalil isn't accused of breaking any laws during the protests at Columbia.
The government, however, said noncitizens who participate in such demonstrations should be expelled from the country for expressing views that the administration considers to be antisemitic and "pro-Hamas," referring to the Palestinian militant group that attacked Israel on Oct. 7, 2023.
Khalil, a 30-year-old international affairs graduate student, served as a negotiator and spokesperson for student activists at Columbia University who took over a campus lawn last spring to protest Israel's military campaign in Gaza.
The university brought in police to dismantle the encampment after a small group of protesters seized an administration building.
Khalil is not accused of participating in the building occupation and wasn't among the people arrested in connection with the demonstrations.

Mohsen Mahdawi, left, and Mahmoud Khalil participate in a pro-Palestinian protest Oct. 12, 2023, at Columbia University in New York.
Still, images of his maskless face at protests, along with his willingness to share his name with reporters, made him an object of scorn among those who saw the protesters and their demands as antisemitic.
The White House accused Khalil of "siding with terrorists," but has yet to give any evidence for the claim.
The Trump administration said it will take away at least $400 million in federal funding from research programs at Columbia and its medical center to punish it for not doing enough to fight what it considers to be antisemitism on campus.
Some Jewish students and faculty complained about being harassed during the demonstrations or ostracized because of their faith or their support of Israel.
Gaza war protests ignite on US college campuses

A University of Southern California protester is detained by USC Department of Public Safety officers during a pro-Palestinian occupation at the campus' Alumni Park on Wednesday, April 24, 2024 in Los Angeles. (AP Photo/Richard Vogel)

Demonstrators chant at a pro-Palestinian protest at the University of Texas, Wednesday, April 24, 2024, in Austin, Texas. (Mikala Compton/Austin American-Statesman via AP)

Texas state troopers in riot gear try to break up a pro-Palestinian protest at the University of Texas, Wednesday, April 24, 2024, in Austin, Texas. (Jay Janner/Austin American-Statesman via AP)

A row of Palestinian flags are seen on the fence at the pro-Palestinians demonstration encampment at Columbia University in New York on Wednesday April 24, 2024. (AP Photo/Stefan Jeremiah)

State troopers try to break up a pro-Palestinian protest at the University of Texas Wednesday April 24, 2024, in Austin, Texas. Student protests over the Israel-Hamas war have popped up on an increasing number of college campuses following last week's arrest of more than 100 demonstrators at Columbia University. (Jay Janner/Austin American-Statesman via AP)

A demonstrator is restrained by police at a pro-Palestinian protest at the University of Texas, Wednesday, April 24, 2024, in Austin, Texas. (Ricardo B. Brazziell/Austin American-Statesman via AP)

State troopers on horses push back protesters during a pro-Palestinian protest at the University of Texas, Wednesday April 24, 2024, in Austin, Texas. (Mikala Compton/Austin American-Statesman via AP)

A Georgia State Patrol officer detains a protester on the campus of Emory University during a pro-Palestinian demonstration Thursday, April 25, 2024, in Atlanta. (AP Photo/Mike Stewart)

Georgia State Patrol officers detain a protester on the campus of Emory University during an pro-Palestinian demonstration Thursday, April 25, 2024, in Atlanta. (AP Photo/Mike Stewart)

Authorities detain a protester on the campus of Emory University during a pro-Palestinian demonstration, Thursday, April 25, 2024, in Atlanta. (AP Photo/Mike Stewart)

Protesters are cuffed after being detained on the campus of Emory University during a pro-Palestinian demonstration Thursday, April 25, 2024, in Atlanta. (AP Photo/Mike Stewart)

A police officer detains a protester on the campus of Emory Univeristy during an pro-Palestinian demonstration, Thursday, April 25, 2024, in Atlanta. (AP Photo/Mike Stewart)

Student protestors erected approximately 20 tents on Parrish Beach by Clothier Hall at Swarthmore College in Swarthmore, Pa. on Tuesday, April 23, 2024. (Monica Herndon/The Philadelphia Inquirer via AP)

A University of Southern California protester is detained by USC Department of Public Safety officers during a pro-Palestinian occupation at the campus' Alumni Park on Wednesday, April 24, 2024 in Los Angeles. (AP Photo/Richard Vogel)

A University of Southern California protester is detained by USC Department of Public Safety officers during a pro-Palestinian occupation at the campus' Alumni Park on Wednesday, April 24, 2024, in Los Angeles. (AP Photo/Richard Vogel)

University of Southern California protesters fight with University Public Safety officers as they try to remove tents at the campus' Alumni Park during a pro-Palestinian occupation on Wednesday, April 24, 2024 in Los Angeles. (AP Photo/Richard Vogel)

University of Southern California protesters carry a tent around Alumni Park on the University of Southern California to keep security from removing it during a pro-Palestinian occupation on Wednesday, April 24, 2024, in Los Angeles. (AP Photo/Richard Vogel)

University of Southern California protesters carry a tents around Alumni Park on the University of Southern California to keep security from removing them during a pro-Palestinian occupation on Wednesday, April 24, 2024 in Los Angeles. (AP Photo/Richard Vogel)

University of Southern California protesters carry a tents around Alumni Park on the campus of the University of Southern California to keep security from removing them during a pro-Palestinian occupation on Wednesday, April 24, 2024 in Los Angeles. (AP Photo/Richard Vogel)

A University of Southern California protester, right, confronts a University Public Safety officer at the campus' Alumni Park during a pro-Palestinian occupation on Wednesday, April 24, 2024, in Los Angeles. (AP Photo/Richard Vogel)

University of Southern California protesters push and shove University Public Safety officers as tempers get heated during a pro-Palestinian occupation on the University of Southern California campus Wednesday, April 24, 2024 in Los Angeles. (AP Photo/Richard Vogel)

A woman is arrested at a pro-Palestinan protest at the University of Texas, Wednesday, April 24, 2024, in Austin, Texas. (Jay Janner/Austin American-Statesman via AP)

Texas state troopers in riot gear try to break up a pro-Palestinian protest at the University of Texas, Wednesday, April 24, 2024, in Austin, Texas. (Jay Janner/Austin American-Statesman via AP)

Signs are displayed on tents at the pro-Palestinian demonstration encampment at Columbia University in New York on Wednesday April 24, 2024. (AP Photo/Stefan Jeremiah)

People sit outside tents at the pro-Palestinian demonstration encampment at Columbia University in New York on Wednesday April 24, 2024. (AP Photo/Stefan Jeremiah)

A Palestinian flag is displayed at the pro-Palestinian demonstration encampment at Columbia University in New York on Wednesday April 24, 2024. (AP Photo/Stefan Jeremiah)

State troopers try to break up a pro-Palestinian protest at the University of Texas, Wednesday, April 24, 2024, in Austin. (Jay Janner/Austin American-Statesman via AP)

Pro-Palestinian protesters face off with mounted state troopers at the University of Texas, Wednesday, April 24, 2024, in Austin. (Jay Janner/Austin American-Statesman via AP)

Students participate in a pro-Palestinian protest at the University of Texas, Wednesday, April 24, 2024, in Austin. (Jay Janner/Austin American-Statesman via AP)

A pro-Palestinian protester walks past pro-Israel protesters at the University of Texas Wednesday April 24, 2024, in Austin. (Jay Janner/Austin American-Statesman via AP)

A woman raises a fist during a pro-Palestinian protest at the University of Texas, Wednesday, April 24, 2024, in Austin. (Jay Janner/Austin American-Statesman via AP)

A woman is arrested at a pro-Palestinian protest at the University of Texas, Wednesday, April 24, 2024, in Austin. (Jay Janner/Austin American-Statesman via AP)

Tents erected at the pro-Palestinian demonstration encampment at Columbia University in New York, on Wednesday, April 24, 2024. (AP Photo/Stefan Jeremiah)

University of Texas police officers arrest a man at a pro-Palestinian protest on campus, Wednesday April 24, 2024, in Austin, Texas. (Jay Janner/Austin American-Statesman via AP)

A makeshift camp supporting the Palestinians cause is staged on the UCLA campus, Thursday, April 25, 2024, in Los Angeles. (AP Photo/Jae C. Hong)

University of Southern California protester raises an anti war sign in Alumni Park on the campus of the University of Southern California during a pro-Palestinian occupation on Wednesday, April 24, 2024 in Los Angeles. (AP Photo/Richard Vogel)

Student protesters hold up sheets as others pray at the pro-Palestinian demonstration encampment at Columbia University in New York on Wednesday April 24, 2024. (AP Photo/Stefan Jeremiah)

A pro-Palestinian protester faces off with state troopers at the University of Texas Wednesday April 24, 2024, in Austin. (Jay Janner/Austin American-Statesman via AP)

Cally, a former UT student, faces off with a mounted state trooper at a pro-Palestinian protest at the University of Texas, Wednesday, April 24, 2024, in Austin. (Jay Janner/Austin American-Statesman via AP)

A woman is arrested at a pro-Palestinian protest at the University of Texas, Wednesday April 24, 2024, in Austin. (Jay Janner/Austin American-Statesman via AP)

New York police officers move towards an entrance to Columbia University, Tuesday, April 30, 2024, in New York. After entering the campus, a contingent of police officers approached Hamilton Hall, the administration building that student protesters began occupying in the morning. (AP Photo/Julius Motal)

Members of the New York Police Department strategic response team move towards an entrance to Columbia University, Tuesday, April 30, 2024, in New York. After entering the campus, a contingent of police officers approached Hamilton Hall, the administration building that student protesters began occupying in the morning. (AP Photo/Julius Motal)

Members of the New York Police Department strategic response team move towards an entrance to Columbia University, Tuesday, April 30, 2024, in New York. After entering the campus, a contingent of police officers approached Hamilton Hall, the administration building that student protesters began occupying in the morning. (AP Photo/Julius Motal)

Students watch from their residence hall windows as members of the New York Police Department strategic response team move towards an entrance to Columbia University, Tuesday, April 30, 2024, in New York. After entering the campus, a contingent of police officers approached Hamilton Hall, the administration building that student protesters began occupying in the morning. (AP Photo/Julius Motal)

Students with the Gaza Solidarity Encampment block the entrance of Hamilton Hall at Columbia University after taking over it on Tuesday, April 30, 2024 in New York. Columbia Students for Justice in Palestine called for mobilization close to midnight. Students have been occupying part of campus since April 17, calling for the university to divest from institutions that have ties to Israel. (Marco Postigo Storel via AP)

Members of the New York Police Department strategic response team escort protesters from Columbia University, Tuesday, April 30, 2024, in New York. After entering the campus, a contingent of police officers approached Hamilton Hall, the administration building that student protesters began occupying in the morning. (AP Photo/Julius Motal)

Members of the New York Police Department strategic response team load arrested protesters from Columbia University onto a bus, Tuesday, April 30, 2024, in New York. After entering the campus, a contingent of police officers approached Hamilton Hall, the administration building that student protesters began occupying in the morning. (AP Photo/Julius Motal)

Members of the New York Police Department strategic response team load arrested protesters from Columbia University onto a bus, Tuesday, April 30, 2024, in New York. After entering the campus, a contingent of police officers approached Hamilton Hall, the administration building that student protesters began occupying in the morning. (AP Photo/Julius Motal)

A police bus loaded with protesters arrested at Columbia University departs an entrance to the campus on 114th Street, Tuesday, April 30, 2024, in New York. After entering the campus, a contingent of police officers approached Hamilton Hall, the administration building that student protesters began occupying in the morning. (AP Photo/Julius Motal)