NBC: Democrats make big gains in state legislatures after beating expectations