Voters leave a precinct in Sun City West, Ariz., after casting their ballots in the state’s primary election in July. The ability of nearly 100,000 Arizonans to vote in state and local elections is headed to court after election officials said they discovered an error in their system last week, throwing a chaotic wrinkle into the battleground state’s voter registration …