in felonies or crimes of violence (a) In general Section 1979 of the Revised Statutes ( 42 U.S.C. 1983 ) is amended by— (1) striking except that in any action and all that follows through relief was unavailable. and inserting the following: “except that— (1) in any action brought against a judicial officer for an act or omission taken in the judicial capacity of that officer, injunctive relief shall not be granted unless a declaratory decree was violated or declaratory relief was unavailable