Isn’t sodomy considered a sin even between a husband and wife?
Not in the Bible it’s not. If you’re a Catholic, the magisterium teaches that it’s wrong, based on their long experience at discerning what is and is not good for the well-being of the human soul. Likewise with Mormons. But if you’re a “Sola Scriptura” type of Christian Protestant, you’re on your own. There are plenty of rather nebulous verses about avoiding uncleanness and such, but if you rely solely on the inspired Word of God to tell you specifically whether or not consensual sodomy between husband and wife is considered unclean, you’ll be uncertain forever.