The stock market in President Donald Trump’s first year back in the White House was the weakest of any president’s first year of a new term since 2005, when George W. Bush started his second term.