But you see the rub? For a court to order the sale, or for a state or federal law to prohibit that convenant from being enforced (or punishing him for following it)(when it was legal when it was created) puts the state in the position of violating the impairment of contracts provision of the constitution.
The IOC applies to the FEDERAL government. Not the state.