A Mexican court has ordered jeans giant Levi Strauss & Co to pay one of its former suppliers $45 million in damages after it was wrongly targeted in an anti-counterfeiting raid.