Inflation in the U.S. is back after more than half a decade of falling short.

A price measure watched closely by the Federal Reserve hit the central bank’s target after running below it every month for six years, as a strong labor market nudges wages higher and robust economic growth squeezes slack out of the economy.

Though inflation hits...