The act of marriage is a legally binding contract. Somehow organized religion, as faith officials are wont to do, got involved in the process.
Now they think it’s all about them. It is not.
When you want to break that contract, you don’t need a priest. You need a lawyer.
Organized religion has the right to say no to the legally meaningless ceremonial part of marriage. The government, however, does not have that ability.
To deny anyone the right to legally contract is a violation of the Constitution.