U.S. stocks clawed back by the end of the day some of Monday's steep losses made after a Chinese startup's artificial intelligence model sowed doubts about the U.S. approach to building AI.