The U.S. and Iran have agreed to stand down and return to the negotiating table after days of tit-for-tat hostilities.