While the presidential campaign commands the public’s attention, political parties and financial contributors are quietly preparing for another less glitzy yet significant set of elections a year from now—battles to determine control of dozens of state legislative chambers.