Turkey and Iran, which support opposing sides in Syria’s civil war, said they have agreed to resume diplomatic efforts along with Russia to restore calm.