Wisconsin’s Supreme Court has upheld the state’s ban on gay marriage and civil unions.

The court was asked to examine whether a 2006 constitutional amendment was correctly put to voters.

One voter had filed a lawsuit claiming that the amendment broke rules because it referred to both gay marriage and civil unions.

The complainant said that this broke the rule that amendments could only refer to one issue.

However, the judges unanimously disagreed.

According to Associated Press, Justice Michael Gableman said both ways of phrasing the question “carry out the same general purpose of preserving the legal status of marriage in Wisconsin as between only one man and one woman.”

Wisconsin allows gay couples to sign a register of domestic partnerships, which grants them a few of the rights given to married couples.

Benefits they are entitled to include hospital visitation, inheritance and medical leave rights.