; or (bb) during the 9-month period beginning with June 26, 2015, or if earlier, the first date on which such State recognized same-sex marriages; and (ii) provides a sworn affidavit that the widow or widower was in a domestic partnership with such individual throughout the 9-month period ending on the date of the individual’s death; or (B) the stepchild of such individual— (i) became the stepchild of such individual as a result of a parent of the stepchild becoming the wife or husband of such individual (or being deemed to be the wife or husband of such individual under subsection (h)(1)(A)(ii))— (I) if such parent is domiciled in a State that recognized same-sex marriages as of June 26, 2013, during the 9-month period beginning with June 26, 2013; and (II) if such parent is domiciled in any other State— (aa) during the 9-month period beginning with June 26, 2013; or (bb) during the 9-month period beginning with June 26, 2015, or if earlier, the first date on which such State recognized same-sex marriages; and (ii) provides a sworn affidavit that such parent was in a domestic partnership with such individual throughout the 9-month period ending on the date of the individual’s death; ; and (5) by adding at the end the following: For purposes of this subsection, the term same-sex marriage shall include a civil union, registered domestic partnership, and any other legal relationship treated by the Commissioner as a marital relationship for purposes of determining eligibility for spousal benefits under this title. 4. Notification of changes in law