A Columbia University student detained by immigration officials was released by a federal judge as he fights the Trump administration’s attempts to remove him from the country.