Rising energy prices threaten to stoke inflation and hobble economic growth in countries around the world.