Hilchos Rechilus, chapter 1, section 3

) The prohibition of rechilus is even if one has no intent to cause hate and even one thinks that the subject spoken of acted correctly. For example, Reuven rebukes Shimon for saying something about him, and Shimon justifies himself by saying he acted correctly because Levi said the exact same thing about him.