A small number of lower-profile state legislative races in districts around the country could shift partisan control of legislative chambers in several key swing states next year, potentially allowing state lawmakers to reshape how elections are run.