That was before the revolution. The revolutionary government still honored the deal, but that's been obviously a losing move for a while. The whole Middle East recognizes that, just look at how many countries Pakistan has sharing agreements with recently.
Treaty obligations do not disappear with a revolution
They might not disappear, but it's more like loan sharks insisting you must inherit your father's gambling debts than anything. The US and Israel have absolutely no place criticizing others for breaking agreements in any case.
Such as the Paris Agreement, right?