A court has told American Apparel’s polarizing founder that he can’t have his company back