The Fourteenth Amendment requires a state to license a marriage between two people of the same sex and to recognize a marriage between two people of the same sex when their marriage was lawfully licensed and performed out-of-state.
https://www.scotusblog.com/case-files/cases/obergefell-v-hodges/