Stock Market Today: The Dow Jones index rallied Friday after back-and-forth action. But Nvidia and Palantir couldn't pull ahead.