The three major stock indexes all ended for a second straight day Tuesday, as worries about AI-tied valuations continued.