The three major U.S. stock indexes established new intraday records Friday, as tech stocks continued to surge and oil prices declined on optimism the U.S. and Iran were nearing a peace agreement.