I addressed civil law, not religion.
The First Amendment is part of civil law, though. So marriage is recognized as part of “free exercise thereof” of religion and a right that no government can abridge. Not so homosexual marriage, which attacks the marriage institution/sacrament of religion.