Judge pleads guilty to defending civil jury trials