What is needed is a constitutional amendment that says that government shall pass no law that legislates a person’s physical body – its form, appearance, intelligence, or composition. The physical body is the most personal space an individual has; one that must be lived with 24/7. It is indeed oppressive to have someone legislate this at a distance.
Interestingly, such an amendment would also prohibit the death penalty, and allow humane euthanasia when a person wishes it.
I think the court ruled consistent with the Constitution as it stands. I think that the minority voice rightly represented the majority sentiment of the country, in the interest of peace.