The decision violates both the letter and spirit of the law.