Stocks staged a recovery after it appeared tensions had cooled between Iran and the U.S.