Rebounding tech stocks drove U.S. indexes higher a day after they tumbled on doubts about the artificial intelligence frenzy.