“Judicial immunity is strong medicine…. But the medicine’s potency cautions against its indiscriminate prescription,” appellate court says.