Appeal judges ruled in favor of the pop star and ordered that the designer’s trademark be deregistered