The U.S. gross domestic product rose at a 2.4% annual rate in the second quarter, the Commerce Department said Friday.