A federal judge has ordered the release of Columbia University pro-Palestinian activist Mahmoud Khalil.