Wall Street ended higher on Tuesday, led by tech stocks as renewed interest in artificial intelligence (AI) eased concerns over its disruptive potential.