A federal judge said ICE violated due process by preventing a migrant from leaving, then detaining him for staying.