The ruling found the plan to limit flight capacity contradicted EU rules.