iran paid costs they expected to pay beforehand, but the result of negotation is that they dont need to give the concessions they were previously willing to give.
thats a pretty clear win. they paid a heavy cost for it sure, and war is expensive, but as a negotiation tactic goes, doing the war was a success