Prosecutors and judges who attempt to investigate and charge corrupt politicians could be fined and sentenced to jail under a new law in Brazil.