U.S. President Joe Biden speaks prior to signing the U.S. President Joe Biden speaks prior to signing the “Respect for Marriage Act,” a landmark bill protecting same-sex marriage, during a ceremony on the South Lawn at the White House in Washington, U.S., December 13, 2022.

The Respect for Marriage Act protects against discrimination against same-sex and interracial couples.

Thousands of people attended the ceremony on the White House South lawn.

The right to marry isn't guaranteed by the respect for marriage act. Same-sex couples have the same federal benefits as any married couple, according to the document.

The Supreme Court's decision to overturn the right to have an abortion renewed the push for codifying the protections. The Obergefell case, in which the right to same-sex marriage was affirmed, is one of the landmark cases that could be reviewed.

In 1965, the Supreme Court said married couples have the right to obtain contraceptives, and in 2003 it established the right to engage in private sex.

Same-sex marriage is not codified by the respect for marriage act. If the Supreme Court overturns Obergefell, states that oppose same-sex marriage will be able to ban it.

The bill was passed by a group of Democrats and Republicans. The bill passed the House with bipartisan support on Thursday, a week after it passed the Senate.

Biden supported same-sex marriage over the course of his life. The 1996 Defense of Marriage Act was one of the bills that Biden voted for. The signing of Tuesday's legislation caused the repeal of the Defense of Marriage Act.

In the 2008 election, Biden said in a debate that he and Obama did not support changing the civil definition of marriage. Same-sex marriage was endorsed by Vice President Biden on Meet the Press before Obama did.