Agreement could increase the chance of securing a permanent end to the war between the US and Iran