News of the agreement came as Mr. Assad received what appeared to be another positive development: A Turkish official suggested publicly for the first time that Turkey would accept a peace deal in Syria’s six-year-old war that would allow Mr. Assad to stay in power.