U.S. economic growth in early 2017 was modest but stronger than initially thought, and the pace is picking up in the current quarter.

Gross domestic product, a broad measure of the goods and services produced in the U.S. economy, expanded at an inflation- and seasonally adjusted annual rate of 1.2% in the first quarter, the Commerce Department said Friday.

The...