Those judges had no authority to change the definition of marriage. They contemplated their navels and convinced themselves that they alone could change social policy and make new law, and even contemptuously opined that belief in traditional marriage is without a "rational basis."
"We obviously have to follow the law as provided by the Supreme Judicial Court, even if we don't agree with it," and we need to decide "what kind of statute we can fashion which is consistent with the law."
But what "law"? There is no law that requires or even allows same-sex marriages. The judges enunciated only special-interest advocacy masquerading as legal reasoning.
Only the legislature can create law - draft bill, debate it, vote etc. Judicial opinions are NOT law. And never will be.