Turkey’s president cast himself as a mediator after pushing Putin to return Ukrainian territory.