As the Sunni jihadi group ISIS marches toward Iraq's capital, Iran and the U.S. find themselves working toward a common goal.