Three workers at a government-owned power company have been sacked after writing character references for their rapist boss.