Calm is returning to Wall Street, and tech stocks are leading US stock indexes higher following a strong profit report from Palantir Technologies, a darling benefiting from the artificial-intelligence boom.