The U.S. Justice Department’s demands for state records highlight the long struggle between improving election security and safeguarding voting rights.