New law to change first name w/ marriage?

I got married recently, and at the county clerk we were told that people are now allowed to change not just their last name, but also their first name when they get married in Mass. I got my marriage license with my new first name and now at the social security office they're not recognizing this change of first name. Anyone heard of/done this successfully?