A Turkish court sentenced Istanbul Mayor Ekrem İmamoğlu to two years and one month in prison and imposed a political ban.