Pitched battles for control of state legislative chambers are attracting unheard-of sums of money as Democrats and Republicans home in on once-overlooked elections that will determine which party holds power for the next decade.