Judge blocks Trump from ending some migrant protections