The lawsuit began after same-sex marriage became legal in Massachusetts in May 2004 and Gov . Mitt Romney , an opponent of it , invoked the 1913 statute , which had been originally adopted in part to block interracial marriages .