The lawsuit was being filed Tuesday in federal court in Boston by Gay & Lesbian Advocates & Defenders, the anti-discrimination group that brought a successful legal challenge leading to Massachusetts becoming the first state in the nation to legalize gay marriage in 2004.