Trump’s choice of J.D. Vance as his running mate for the top job in Washington added to the worries, driving traders to sell shares perceived to be at risk.