California can sue Huntington Beach over its voter ID law, judge rules