A first-of-its-kind Massachusetts law will rein in private-equity greed in health care, offer hope that the state can avoid similar future crises, and serve as a model for other states to build on.