Compliance with UN nuclear watchdog marks change in tone for Tehran, which limited cooperation with inspectors since former US president Trump withdrew from nuclear deal in 2018