@vij but it wasn't written into the constitution.
The Amendment talked about holding office, not running for office or voting procedures, which are dramatically different parts of the process, as the court expressed in its ruling.
Had it actually been written into the constitution the result would probably have been very different.