I don't think it works that way. Federal immigration law looks to see if you are married. If two women marry in NY or NH, they are married for federal purposes and therefore for immigration. DOMA's overturn was precisely about the Feds not having to make their own definition here or average things out.
What if they were married in another country with legal SSM, and neither party lives in, has ever lived in, or intends to live in one of the 12 states with legal SSM? The federal government recognizes their marriage for the purpose of allowing immigration, but the immigration is to Texas where SSM is not legal?