The nearly four-month-old Iran war has pushed consumer prices to a three-year high and unnerved many voters