Ortiz Bernardini, Luis, Poder Judicial, Perú