Democrats hoping that Tuesday’s midterm elections would deliver them the antidote to Trumpism had to settle instead for medicine that might curb its most damaging side effects.