Federal appeals courts rejected qualified immunity for cops and a judge who flouted longstanding constitutional principles.