WASHINGTON, D.C. – The U.S. Supreme Court made same-sex marriage legal throughout the nation Friday in a much-awaited landmark decision that triggered wild scenes of jubilation and tears of joy.

In a 5-4 ruling, the highest court in the United States said the Constitution requires all 50 states to carry out and recognize marriage between people of the same sex.

President Barack Obama, in heartfelt remarks, praised the ruling as “a victory for America,” in a fresh coup for the White House a day after the Supreme Court upheld a disputed section of his signature health care reform.

“Today we can say in no uncertain terms that we’ve made our union a little more perfect,” he said at the White House, which changed its Twitter avatar to the rainbow colors of the growing gay rights movement.

“This decision affirms what millions of Americans already believe in their hearts — when all Americans are treated as equal, we are all more free,” Obama said.

Prominent in the crowd was Jim Obergefell, the lead plaintiff in the case, clutching a photo of his deceased husband John.

A clearly affected Obergefell took a brief phone call from Obama, who told him: “Not only have you been a great example for people but you’re also going to bring about a lasting change in this country.

“And it’s pretty rare where that happens so I couldn’t be prouder of you and your husband. God bless you.”

Obergefell, who was live on television at the time, replied humbly: “Thank you, sir. That means an incredible amount to me.”

Plaintiff Jim Obergefell holds a photo of his late husband John Arthur as he speaks to members of the media after the U.S. Supreme Court handed down an historic ruling regarding same-sex marriage on June 26, 2015 outside the Supreme Court in Washington, D.C. Alex Wong/Getty Images/AFP

Dissenting voices

Also in the vast crowd outside court as the life-changing news filtered through was Robert Westover, 52, and Tom Fulton, 57, who hugged and kissed.

“It feels like my birthday, the prom, our wedding day. It’s hard to express the intensity of this moment, that our love now is equal,” Westover told AFP.

The case was brought by 14 same-sex couples, and the widowers of two gay couples, including Obergefell, who had challenged de facto bans on same-sex marriage in Michigan, Kentucky, Ohio and Tennessee.

All four states had insisted in their respective constitutions that marriage could only be a union between a man and a woman.

“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,” the court said.

Marriage, it added, has been a core institution in society since ancient times, “but it has not stood in isolation from developments in law and society.”

To exclude them from marriage, it said, would deny same-sex couples “the constellation of benefits that the states have linked to marriage.”

Voicing dissent was Chief Justice John Roberts, who expressed concern that the court was making a decision better left to elected state legislatures.

“If you are among the many Americans — of whatever sexual orientation — who favor expanding same-sex marriage, by all means celebrate today’s decision,” he said.

“Celebrate the achievement of a desired goal. Celebrate the opportunity for a new expression of commitment to a partner. Celebrate the availability of new benefits.

“But do not celebrate the Constitution. It had nothing to do with it.”

U.S. President Barack Obama pauses while delivering a statement on the Supreme Court ruling on gay marriage, in the Rose Garden at the White House on June 26, 2015 in Washington, D.C. Molly Riley/AFP

Remember this day

The decision came a year after the Supreme Court, in another major ruling, struck down a controversial federal law that denied U.S. government benefits to wedded gays and lesbians.

“This transformative triumph is a momentous victory for freedom, equality, inclusion, and above all, love,” said Freedom to Marry, one of several groups battling for LGBT marriage rights.

“For the first time in our nation’s history, all loving and committed couples will have the freedom to say, ‘I do’,” it said in a statement.

“We’ll remember this day for the rest of our lives,” added the It Gets Better Project, another gay rights organization, in a mass email to supporters.

But the conservative Family Research Council expressed outrage, saying that “no court can overturn natural law.”

“Nature and nature’s God, hailed by the signers of our Declaration of Independence as the very source of law, cannot be usurped by the edict of a court, even the United States Supreme Court,” it said.

https://www.youtube.com/watch?v=f4FyOnVFuLo

Two months ago, people queued for days for a chance to hear the arguments that led to Friday’s momentous ruling, and activists for and against marriage equality rallied in front of the court.

At issue was the Supreme Court’s interpretation of the 14th Amendment of the Constitution, which provides for equal protection under the law.

The nine justices had to decide if this amendment means states are required to recognize marriages that were conducted in other states.

The four states involved in the case, supported by religious and conservative organizations, argued that marriage is based on the biological compatibility of a man and woman.

Today is a big step in our march toward equality. Gay and lesbian couples now have the right to marry, just like anyone else. #LoveWins