Section 242 of Title 18 makes it a crime for a person acting under color of any law to willfully deprive a person of a right or privilege protected by the Constitution or laws of the United States. The offense is punishable by a range of imprisonment up to a life term, or the death penalty, depending upon the circumstances of the crime, and the resulting injury, if any.
This is essentially the Federal Government biggest single gun against local corruption - as I recall, it's what officers who beat Rodney King were eventually prosecuted under.
It doesn’t work that way. If it did, the current Supreme Court could be prosecuted for impending a woman’s constitutional right to an abortion, which was decided by a previous Supreme Court.
https://www.justice.gov/crt/deprivation-rights-under-color-l...