War in Iran threatens to hit growth and confidence, deepen governments’ unpopularity and hurt public finances