US-Iran deal aims to prevent conflict