A federal judge presiding over Mahmoud Khalil’s case ruled on Friday that the Trump administration can continue to detain the Columbia University activist.