In elections in Virginia, New Jersey, and elsewhere, evidence of a backlash against Trump, as Democrats make gains.