The Dow Jones Industrial Average gained 239 points on Thursday following strong earnings reports from after the bell Wednesday, but Amazon and Apple both missed analysts’ expectations.