The Constitution of the State of Montana is the primary legal document providing for the self-governance of the U.S. State of Montana. From Wikipedia
The ruling cites the law's vague title, which failed to clarify whether 'sex' referred to gender or sexual intercourse.