A judge rejected a lawsuit against Huntington Beach over a measure allowing officials to require voter identification at the polls.