The deal, which has yet to be approved by the leaders of the US and Iran, comes as fighting resumes.