With luck, the Iran war won’t cause a recession. But the surge in energy prices will push up the cost of living