Restraint? Um, is it not their job to rule on Article IV section 4 of the US Constitution. They didn't show restraint. They didn't want to overturn the legislation because they like it.
What in the US constitution gives the SCOTUS the power to overturn the Massachusetts case, in your opinion?