US stock market posts gains in Trump's first 100 days