Dow Jones, major indices gain as Trump holds off Iran strikes