The U.S. economy has proven surprisingly resilient in the face of fighting with Iran and the energy price spike it caused.