A federal court has invalidated a Utah law that prohibited co-habitation between a married person and another adult who was not his or her spouse — a law that had been part of the state’s legal infrastructure banning polygamy, BuzzFeed reports.

The ruling does not legalize polygamy, according to BuzzFeed, but does permit “religious co-habitation.” Polygamous households are still prohibited from seeking multiple marriage licenses from the state.

The case had been brought by the Brown family, stars of the TV show “Sister Wives”.