Judge says Arizona can enforce immigration law