ROME—Italy finally pulled out of a painful, two-year contraction in the third quarter as companies tentatively began spending again, although poor consumer confidence is likely to make for anemic growth in the near future.

Italy's gross domestic product was flat in the third quarter from the previous quarter, the best reading since spring 2011, national statistics institute Istat reported Tuesday, raising an earlier estimate of a 0.1% decline.

...