Real estate lawsuit to shift how homes bought, sold across Mass., U.S.