Republicans running on the ballot underneath President-elect Donald Trump have made gains in numerous state legislatures.