Four states that Republican Donald Trump carried in this month’s presidential election also elected Democratic senators.