The Supreme Court struck down Texas' widely replicated regulation of abortion clinics Monday in the court's biggest abortion case in nearly a quarter century.

The justices voted 5-3 in favor of Texas clinics that had argued the regulations were a thinly veiled attempt to make it harder for women to get an abortion in the nation's second-most populous state.

Justice Stephen Breyer's majority opinion for the court held that the regulations are medically unnecessary and unconstitutionally limit a woman's right to an abortion.

Texas had argued that its 2013 law and subsequent regulations were needed to protect women's health. The rules required doctors who perform abortions to have admitting privileges at nearby hospitals and forced clinics to meet hospital-like standards for outpatient surgery.

Breyer wrote that "the surgical-center requirement, like the admitting privileges requirement, provides few, if any, health benefits for women, poses a substantial obstacle to women seeking abortions and constitutes an 'undue burden' on their constitutional right to do so."

He expounded further on the broad issues of the case.

"In the face of no threat to women’s health," Breyer wrote, "Texas seeks to force women to travel long distances to get abortions in crammed-to-capacity superfacilities. Patients seeking these services are less likely to get the kind of individualized attention, serious conversation, and emotional support that doctors at less taxed facilities may have offered. Healthcare facilities and medical professionals are not fungible commodities. "

Justices Anthony Kennedy, Ruth Bader Ginsburg, Sonia Sotomayor and Elena Kagan joined Breyer.

Chief Justice John Roberts and Justices Samuel Alito and Clarence Thomas dissented.

Thomas wrote that the decision "exemplifies the court's troubling tendency 'to bend the rules when any effort to limit abortion, or even to speak in opposition to abortion, is at issue.'" Thomas was quoting an earlier abortion dissent from Justice Antonin Scalia, who died in February.

In a response to the decision, Amy Hagstrom Miller, Founder and CEO of Whole Women’s Health said that her organization is “thrilled.”

After years of fighting heartless, anti-abortion Texas politicians who would seemingly stop at nothing to push abortion out of reach, I want everyone to understand: you don’t mess with Texas, you don’t mess with Whole Woman’s Health, and you don’t mess with this beautiful, powerful movement of people dedicated to reproductive health, rights, and justice.

Abortion providers said the rules would have cut the number of abortion clinics in the state by three-fourths if they had been allowed to take full effect.

When then-Gov. Rick Perry signed the law in 2013, there were about 40 clinics throughout the state. That number dropped to under 20 and would have been cut in half again if the law had taken full effect, the clinics said.

Texas is among 10 states with similar admitting privileges requirements, according to the Center for Reproductive Rights. The requirement is in effect in most of Texas, Missouri, North Dakota and Tennessee. It is on hold in Alabama, Kansas, Louisiana, Mississippi, Oklahoma and Wisconsin.

The hospital-like outpatient surgery standards are in place in Michigan, Missouri, Pennsylvania and Virginia, and it is blocked in Tennessee and Texas, according to the center, which represented the clinics in the Texas case.

Texas passed a broad bill imposing several abortion restrictions in 2013. Texas clinics sued immediately to block it claiming it impermissibly interfered with a woman's constitutional right to an abortion. The clinics won several favorable rulings in a federal district court in Texas. But each time, the New Orleans-based 5th U.S. Circuit Courtof Appeals sided with the state, at first allowing challenged provisions to take effect and then upholding the law with only slight exceptions.

The Supreme Court allowed the admitting privileges requirement to take effect in most of the state, but put the surgical center provision on hold pending the court's resolution of the case.

The justices split largely along liberal-conservative lines in their emergency orders, with the court's conservative justices voting repeatedly to let the law be enforced.