Rationalization

A defense mechanism operating unconsciously, in which the individual attempts to justify or make consciously tolerable, by plausible means, feelings, behavior, and motives that would otherwise be intolerable.