rationalization
noun
the act or process of ascribing one’s actions, opinions, etc., to causes that seem reasonable and valid but are actually unrelated to the true, possibly unconscious and often less complimentary ones.