The Dow Jones Industrial Average and S&P 500 hit records for the third consecutive day as Disney surpassed analysts’ expectations in its second-quarter earnings report.