She was replaced by Justice Samuel Alito, who in 2022 wrote the majority opinion overturning a federal right to abortion that had been protected for decades by the cases Roe v. Wade and Planned Parenthood v. Casey.