Artificial intelligence-related tech shares have helped US investors look past hotter-than-expected inflation data.