The economy expanded at its fastest pace in more than a decade during the spring and summer, showing the U.S. has strengthened its economic footing despite increasing global uncertainty.

Gross domestic product, the broadest measure of goods and services produced across the economy, grew at a seasonally adjusted annual rate of 3.9% in the third quarter, the Commerce Department said Tuesday.

The...