Washington DC (CNN)-In a landmark opinion, a divided Supreme Court ruled Friday that states cannot ban same-sex marriage, establishing a new civil right and handing gay rights advocates a victory that until very recently would have seemed unthinkable.
The 5-4 ruling had Justice Anthony Kennedy writing for the majority with the four liberal justices. Each of the four conservative justices wrote their own dissent, reports CNN.
The far-reaching decision settles one of the major civil rights fights of this era -- one that has rapidly evolved in the minds of the American public and its leaders, including President Barack Obama. He struggled with the issue and ultimately embraced same-sex marriage in the months before his 2012 re-election.
"No union is more profound than marriage, for it embodies the highest ideals of love, fidelity, devotion, sacrifice and family," Kennedy wrote. "In forming a marital union, two people become something greater than they once were."
"Their hope," Kennedy wrote, "is not to be condemned to live in loneliness, excluded from one of civilization's oldest institutions. They ask for equal dignity in the eyes of the law. The Constitution grants them that right."
In a dissent, Justice Antonin Scalia blasted the Court's "threat to American democracy."
"The substance of today's decree is not of immense personal importance to me," he wrote. "But what really astounds is the hubris reflected in today's judicial Putsch."
Chief Justice John Roberts wrote that the decision had "nothing to do with the Constitution.
"If you are among the many Americans—of whatever sexual orientation—who favor expanding same-sex marriage, by all means celebrate today's decision. Celebrate the achievement of a desired goal," he wrote. "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."
After the ruling, Obama called Jim Obergefell, the lead plaintiff in the case, while he and his supporters celebrated the ruling outside the court.
"I just wanted to say congratulations," Obama said as CNN broadcast his warm words to Obergefell over speakerphone. He added: "Your leadership on this has changed the country."
Speaking at the White House later in the morning, Obama said "Americans should be very proud."
The U.S. is now the 21st country to legalize same-sex marriage nationwide. Married same-sex couples will now enjoy the same legal rights and benefits as married heterosexual couples nationwide and will be recognized on official documents such as birth and death certificates.
By the numbers: Same-sex marriage
The decision affirmed growing public support in the U.S. for gay marriage, with about two-thirds of Americans now in favor. And it comes as gay rights groups have seen gay marriage bans fall rapidly in recent years, with the number of states allowing gay marriage swelling most recently to 37 -- that is, until this ruling.
There were two questions before the Court, the first asked whether states could ban same sex marriage, the second asked whether states had to recognize lawful marriages performed out of state.
The relevant cases were argued earlier this year. Attorney John Bursch, serving as Michigan's Special Assistant Attorney General, defended four states' bans on gay marriage before the Court, arguing that the case was not about how to define marriage, but rather about who gets to decide the question.
The case came before the Supreme Court after several lower courts overturned state bans on gay marriage. A federal appeals court had previously ruled in favor of the state bans, with Judge Jeffrey Sutton of the Sixth Circuit U.S. Court of Appeals writing a majority opinion in line with the rationale that the issue should be decided through the political process, not the courts.
Fourteen couples and two widowers challenged the bans. Attorneys Mary Bonauto and Doug Hallward-Driemeier presented their case before the Court, arguing that the freedom to marry is a fundamental right for all people and should not be left to popular vote.
Three years after Obama first voiced his support for gay couples' right to marry, his administration supported the same sex couples at the Supreme Court.
"Gay and lesbian people are equal," Solicitor General Donald B. Verrilli Jr. told the justices at the oral arguments earlier this year. "It is simply untenable -- untenable -- to suggest that they can be denied the right of equal participation in an institution of marriage, or that they can be required to wait until the majority decides that it is ready to treat gay and lesbian people as equals.
The same-sex couples who challenged gay marriage bans in Michigan, Tennessee, Kentucky and Ohio were just a few of the estimated 650,000 same-sex couples in the United States, 125,000 of whom are raising children.
The challenges included same-sex couples who wanted to marry, those who sought to have their lawful out-of-state marriage recognized, as well as those who wanted to amend a birth or death certificate with their marriage status.
Obergefell, the lead plaintiff in the case, married his spouse John Arthur in 2013 months before Arthur died.
The couple, who lived in Ohio, had to travel to Maryland aboard a medical jet to get married when Arthur became gravely ill. And when Arthur died, Obergefell began to fight to be recognized as Arthur's spouse on his death certificate.
The plaintiffs from Michigan are April DeBoer and Jayne Rowse, two Detroit-area nurses who are also foster parents. They took to the courts after they took in four special-needs newborns who were either abandoned or surrendered at birth, but could not jointly adopt the children because Michigan's adoption code requires that couples be married to adopt.
Milestones for LGBT rights
Sgt. Ijpe Dekoe and Thomas Kostura became plaintiffs in the gay marriage case after they moved to Tennessee from New York.
The pair had married in New York in 2011, but Dekoe's position in the Army took the couple to Tennessee, which banned gay marriage and refused to recognize gay marriages performed in other states.
Loud cheers erupted outside the court after the ruling was announced, said the BBC's Paul Blake at the Supreme Court.
Hundreds of people had camped out for hours awaiting the news.
One of the demonstrators, Jordan Monaghan, called his mother from his mobile phone amid the celebrations.
"Hey mom, I'm at the Supreme Court. Your son can have a husband now," Mr Monaghan said.
Minutes after the ruling, couples in one of the states that had a ban, Georgia, lined up in hope of being wed.
On social media, Democratic presidential candidate Hillary Clinton merely tweeted the word "proud" and the White House changed its Twitter avatar into the rainbow colours.
BBN/SSR/AD