There is a public policy exception to both the FF&C Clause, and to contracts. No one has a right to have a court enforce a contract that contravenes public policy.
Precisely what public policy is this ruling contravening? Two years ago, the Virginia Supreme Court heard the visitation rights case with these very litigants. The court sided with the plaintiff - the lesbian partner. The judge was following the law. You just don't like the law.