Im not sure. States have the right to make different gun laws, different environmental laws, etc etc.
And as this is not a commerce issue, the Feds can't use the Commerce Clause.
All the Feds can do, is use the Equal Protection Clause.
honestly, I think a Federal law mandating recognition of SSM would not pass the Supreme Court. This may stay a state-by-state issue.