No, they didn't. In Roe v. Wade they made up a legal test which they can do, and they interpreted existing laws in terms of their constitutionality. However, as far as I can tell that's not what's happening here. They just took a law that applies to the judiciary and said "yah, that applies to the legislature too now". Again, not a lawyer, so the way in which they reached their outcome may not be as bad as it seems to me since I don't really have the knowledge to evaluate it properly. Just because the decision is good though doesn't mean it doesn't have other bad consequences.