Yes, but it’s one more hit for marriage and for traditional society. And it will help all the trans and “gender fluid” people.
The question was how can the courts deny this kind of marriage request. And the answer is "easily".