Mass. joins 22 other states, territories in court filing against Texas lawsuit seeking to overturn election