With its ruling in Goodridge v. Department of Public Health, the Massachusetts Supreme Judicial Court made the state the first in the U.S. to legalize same-sex marriage.
https://en.wikipedia.org/wiki/Goodridge_v._Department_of_Public_Health
Its history has not been looked up yet.