A bench of judges says his impeachment was rushed and against the law.