Either the AG gets the identity wrong and has to let the marriage go through, or the AG gets the identity right and denies it on the basis of them being two women. Of course, the case can also get confounded by the difference between sex and gender.
It's cases like these that show why prohibiting same-sex marriage is a flawed policy. Besides that the the policy is immoral and religion-centric to begin with.