U.S. President Donald Trump praised the rise in the stock market.