A new Massachusetts law, spurred by abrupt college closures and mergers, could be credit positive for the higher education sector, according to an analysis from Moody’s.