Both sides accepted an agreement brokered by the United States and France