How the stock market gained Trump’s backing