June 26 (UPI) -- The U.S. Supreme Court ruled Thursday that Planned Parenthood South Atlantic, the nonprofit's arm that covers South Carolina, can't sue the state over its closing off of the nonprofit's Medicaid funding because it provides abortions.

"The U.S. Supreme Court has affirmed our right to exclude abortion providers from receiving taxpayer dollars," wrote Gov. Henry McMaster, R-S.C., in an X post Thursday.

"Seven years ago, we took a stand to protect the sanctity of life and defend South Carolina's authority and values," he added, "and today, we are finally victorious."

The 6-3 decision followed the court's ideological makeup, with the three liberal judges in dissent while the six conservative judges ruled in support.

Related