State legislatures are just trying to regain their authority in the electoral process