Your comment about the court making a ruling versus something passed by legislation unfortunately ignores the serious over-reach of the current Supreme Court and many lower courts populated by judges from the Federalist Society.
The 1965 Voting Rights Act was extended by the legislature in 2006 with a bi-partisan majority and signed by Republican president and yet had a key provision struck down by the Roberts court.
U.S. Supreme Court Justice Louis Brandeis once stated in New State Ice Co. v. Liebmann how "a single courageous State may, if its citizens choose, serve as a laboratory; and try novel social and economic experiments without risk to the rest of the country."
Historically, since 1865, states have not been laboratories of democracy, but rather, laboratories of oppression. Unfortunately, under our current SCOTUS, this tendency to enable the erosion of rights isn't contained to single states but is being pressed into nationwide oppression.