According to a study, when people feel they have been morally virtuous by... (how does this not scream bible thumping conservative?) it leads to the "licensing [of] selfish and morally questionable behaviour", otherwise known as "moral balancing" or "compensatory ethics".
"Virtuous acts can license subsequent asocial and unethical behaviours,"