Both officials were appointed by Democrats and led the agency responsible for ensuring accurate and secure votes.