Democrats are battling to control state legislatures in several key swing states — and the outcome could help decide the presidential race.