Administrative Litigation Act Article 198

Where the administrative court adjudicates a litigation of revocation and finds that although the original disposition or decision is illegal but the revocation or amendment of the disposition will be materially detrimental to the public interest, the court may dismiss the plaintiff's case if it deems that the revocation or amendment of the original disposition or decision is manifestly contrary to the public interest after considering the harm suffered by the plaintiff, the compensation degree, measures of prevention and all other circumstances.In the preceding Paragraph, it should be declared in the main text of the judgment that the original disposition or decision is illegal.
中文原文 行政訴訟法第198條
行政法院受理撤銷訴訟,發現原處分或決定雖屬違法,但其撤銷或變更於公益有重大損害,經斟酌原告所受損害、賠償程度、防止方法及其他一切情事,認原處分或決定之撤銷或變更顯與公益相違背時,得駁回原告之訴。
前項情形,應於判決主文中諭知原處分或決定違法。

English translation for reference only; the Chinese text prevails. Not legal advice.