Judge sides with Arizona election official in ruling that has implications for midterms voting legal basis