The president of Peru’s judiciary, Duberli Rodriguez, tendered his resignation on Thursday as an influence-peddling scandal has shaken the country’s justice system.