I didn't see any study... but the article clearly states: "when people feel they have been morally virtuous it leads to the "licensing [of] selfish and morally questionable behaviour", otherwise known as "moral balancing" or "compensatory ethics". Which I guess explains Larry Craig's bathroom behavior...