The Dow Jones Industrial Average gained 145 points Thursday as markets rallied to kick off the first day of trading in September.