U.S. stock markets have rallied since the president’s victory more than two months ago, rising on improved economic data and hopes Mr. Trump can stimulate the economy with tax cuts and infrastructure spending while rolling back regulations.