The overall economy has proved resilient in recent years, even as many households have struggled. The war with Iran is following the same pattern.