IANAL, but my understanding is that Judicial immunity in the US is absolute; if a Judge orders the police to beat up a defense attorney, they cannot be sued for it[1].
1: https://en.wikipedia.org/wiki/Mireles_v._Waco