The ruling is correct but not for the reasons you state -
Government marriage is not religious marriage.
Now if her church allowed it then she should take it up with the church elders - but the state has total jurisdiction over how the government handles its “marriage” by its laws.
Well, she isn’t correct as well.
Religious/biblical marriage has always had a number of reasons why divorce could occur. Infidelity, abandonment, one spouse trying to murder the other. Withholding of affection/intimacy, a form of emotional and sexual abuse.