The decision this month by a federal court striking down the criminalization of polygamy in Utah was met with a mix of rejoicing and rage. It's true that the Utah ruling is one of the latest examples of a national trend away from laws that impose a moral code. There is a difference, however, between the demise of morality laws and the demise of morality. This distinction appears to escape social conservatives nostalgic for a time when the government dictated whom you could live with or sleep with. But our morality laws are falling, and we are a better nation for it.

I was the lead counsel for the Browns, the Utah polygamous family featured in the TLC reality program "Sister Wives." They are members of the Apostolic United Brethren Church, and they have one marriage license and three "spiritual" marriages among them.

After the first episode of "Sister Wives" aired, state prosecutors threatened to bring charges under a Utah law that made it a crime when a married person "purports to marry another person or cohabits with another person." The Browns were under investigation before they took prosecutors to court in a challenge to the constitutionality of the law.

The case was never about the recognition of multiple marriages or the acceptance of the religious values underlying this plural family. It was about the right of consenting adults to make decisions for themselves. Judge Clark Waddoups, a conservative George W. Bush appointee, ruled that the criminalization of cohabitation clearly violated the due process clause and the free exercise clause of the U.S. Constitution.

In doing so, he departed from the prevailing precedent: the Supreme Court's opinion in Reynolds vs. United States, which upheld a ban on polygamy in 1879. Waddoups wrote that courts today are "less inclined to allow majoritarian coercion of unpopular or disliked minority groups, especially when blatant racism … religious prejudice, or some other constitutionally suspect motivation, can be discovered behind such legislation."

In Reynolds, religious and racial prejudice were vividly on display. The court unleashed a tirade of indignation, stating, "Polygamy has always been odious among the northern and western nations of Europe, and, until the establishment of the Mormon church, was almost exclusively a feature of the life of Asiatic and of African people."

The idea that polygamy was a "barbarous practice" and contrary to democratic principles drove the demand in the late 1880s and '90s that Utah outlaw it as a condition of statehood.

The stigma attached to polygamy continued to distort legal analysis into this century. As recently as 2006, Utah Justice Ronald Nehring began his opinion in a ruling upholding the criminalization of polygamy by lamenting, "No matter how widely known the natural wonders of Utah may become, no matter the extent that our citizens earn acclaim for their achievements, in the public mind Utah will forever be shackled to the practice of polygamy." Nehring warned any Utah judge of the peril of being the first to recognize that polygamy enjoys constitutional protection.

Well, a federal judge in Utah assumed that burden. Gov. Gary Herbert objected to the court making "decisions on social issues." (He has not yet announced an appeal.) Waddoups, however, was not dictating a decision on a social issue but rather saying that governments could not impose a single version of morality. He limited prosecution under Utah's anti-polygamy law to cases of bigamy, where someone acquires more than one marriage license.

Across the country, the era of morality codes is coming to an inglorious end. This year, the Supreme Court struck down part of the Defense of Marriage Act barring the federal recognition of same-sex marriage. And this week, the New Mexico Supreme Court and another federal judge in Utah struck down the ban on same-sex marriage in those states — bringing the number to 18 states (plus the District of Columbia) where same-sex couples can marry. Meanwhile, Virginia recently repealed its 1877 cohabitation law, and Colorado repealed a criminal adultery law from the 1850s — both relics of a time when states used their criminal codes to force citizens to comply with the religious values of their neighbors.

Most states have wisely turned away from absurd laws criminalizing masturbation and fornication. Obscenity laws have also been curtailed by the Supreme Court in deference to the First Amendment.

Still rightly on the books are laws against bestiality, which involves an obvious lack of consent as well as manifest harm. Likewise, incest bans are based on claims of medical, not moral, harm.

Once any crimes or abuses are stripped away in cases like the Browns', what remains is religious animus. Yet, polygamy is widely practiced around the world by millions of families and was condoned by every major religion at one time. While plural families are called polygamists in our popular lexicon, "polygamy" actually refers to a broad array of plural relationships, from polygyny (one husband and multiple wives, like the Browns) to polyandry (a single wife and multiple husbands) to polyamory (couples who reject the exclusivity of sexual relations). The vast majority of these families are based on consenting relations among adults.

Critics often ignore these other plural relationships (and even polygynists like the Browns) in favor of a stereotype of "compound polygamists," living in remote walled communities where women appear captive and molestation flourishes.

Obviously, there will always be abusers among polygamists — just as there are abusers among monogamists. However, it is no more persuasive to criminalize all plural relationships because of a small number of abusive individuals than it would be logical to outlaw monogamy based on the convicted spouse- and child-abusers in conventional marriages.

In truth, 19th-century Americans were no more moral than we are today. It simply appeared that way with the imposition of official morals, including being told whom we could love in our own homes.

It is not a single moral voice that is heard today but a chorus of voices. Each speaks to its own values but joins around a common article of faith: the belief that morality is better left to parents than to politicians.

Jonathan Turley is the Shapiro professor of public interest law at George Washington University. He wrote this article for the Washington Post.