If an internal investigation reveals that the employee whose complaint launched the process was also engaged in improper behavior (or was, in fact, the person to blame for the situation), don’t hesitate to punish appropriately. As long as you act in good faith, a court is unlikely to conclude the punishment was retaliation for complaining in the first place.