There are laws against underage marriage and against pedophilia.
And there’s laws against homosexual “marriage”. So what’s your point?
If judicial diktats are allowed then get ready for polygamy. Get ready for all sorts of chaos.