Indeed, you may feel better if you try to get some justice regarding this. There should be rules or something the professor violated. If the university does not have a mechanism to address this situation you may be able to approach the ombudsman office and get some orientation, I don't know
Provedor de Justiça - Na Defesa do Cidadão: Perceber para prover