NBC: Republicans made substantial gains in state legislative battlegrounds