Benjamin Mendy has won his legal battle against Manchester City for the majority of his unpaid wages while he faced rape charges.