A judge has ruled that Manchester City should pay Benjamin Mendy approximately £8.5 million in withheld wages.