The Delaware Supreme Court has affirmed a Delaware Court of Chancery ruling that required former American Apparel CEO Dov Charney to repay $19.5 million to a hedge fund in a dispute over money he owed from a failed fight to regain control of the company he helped to found.

A three-member panel of the high court on Monday affirmed the Dec. 19 decision by Chancellor Andre G. Bouchard, which upheld as valid a series of agreements Charney struck with Standard General shortly after his ouster over accusations of sexual harassment and mismanagement in 2014.