A federal judge has indeed rejected the Trump administration's attempt to detain Mahmoud Khalil on foreign policy grounds, ruling that such detention is likely unconstitutional, though the administration has sought other legal means to continue his detention.
Judge rejects Trump admin attempt to redetain Mahmoud Khalil over bogus claims ‘foreign policy’ grounds

FactVerify
Source: factverify.com
Key Evidence
A federal judge ruled that detaining Mahmoud Khalil on foreign policy grounds is likely unconstitutional.
theguardian.comtheguardian.comJudge rules Trump administration can no longer detain Mahmoud Khalil on claims...
aclu.orgaclu.orgCourt Finds Trump’s Use of Obscure Immigration Law Provision to Detain Mahmoud...
apnews.comapnews.comJudge says US effort to deport Mahmoud Khalil on foreign policy grounds is...
The Trump administration tried to continue his detention citing other legal bases.
axios.comaxios.comJudge denies Mahmoud Khalil's release after Trump admin submits new filing
huffpost.comhuffpost.comThe Trump Administration Is Using A Legal Loophole To Keep Mahmoud Khalil In...
Khalil was released after months in custody following court orders.
nbcnews.comnbcnews.comPro-Palestinian activist Mahmoud Khalil released after months in detention
What the Evidence Shows
Multiple credible sources from mid-2025 confirm that a federal judge ruled against the Trump administration's use of foreign policy grounds to detain Mahmoud Khalil, a Columbia University graduate and pro-Palestinian activist. The court found that the government's claim that Khalil's presence posed a threat to U.S. Foreign policy was likely unconstitutional and violated constitutional protections, including First Amendment concerns.
Despite this ruling, the Trump administration attempted to keep Khalil detained by citing other grounds such as immigration status issues. Khalil was eventually released after months in detention, but the administration filed appeals and used legal loopholes to delay his release. Khalil has since filed a $20 million claim against the administration for his detention.
The claim that the Trump administration's attempt to redetain him on foreign policy grounds was rejected by a judge is accurate; however, the administration's continued efforts to detain him on other grounds complicate the situation.