The current implementation of it- where you need to have "clearly establish" a Constitutional right with a prior case in this region- is based on Pearson v. Callahan from 2009, and it takes a terrible Supreme Court precedent and makes it even worse. This has created the patchwork "no case in the circuit has clearly established that a police officer must not make a warrantless search on a Tuesday in May" sort of quibbling.
The work of legislatures has been to roll back qualified immunity. Colorado, New Mexico, and California have removed qualified immunity for their law enforcement officers at the state level. LEO's can still claim qualified immunity for suits under federal law, but they cannot for some suits brought under state law or the state constitution in those states.
The Supreme Court has also, at the same time they've made it harder to hold police to account, made it harder to hold politicians to account, gutting bribery laws and expanding "free speech" to include paying politicians. And the recent idea that a President can't be prosecuted for any "official acts" is also nonsense created by the Supreme Court. This isn't Congress fault, there were laws that prevented it. The Supreme Court just decided that they didn't want to enforce those laws.
The Supreme Court at the root of a lot of the dysfunction in American politics, and somehow still has more respect than they deserve.