The court ruled Trump lacked statutory authority to replace the East Wing with a massive privately funded ballroom.