The IAEA’s chief was in Tehran, ahead of the expiry of a deadline Iran’s Parliament had set for the administration to further scale back compliance with the 2015 nuclear deal if Washington does not lift its sanctions.