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