Strong earnings and guidance from companies tied to AI infrastructure, networking, semiconductors, and data centers pushed major indices to fresh record highs.