Judge blocks defunding of 'sanctuary cities'