Results from the U.S.’s largest companies have helped ease worries about AI spending and inflationary pressures.