Virtue brag
Bragging that one voluntarily exercises self restraint in the face of temptation, or takes less than one can out of moral purity or other lofty sensibilities
Tom is virtue bragging about how he paid more for his new yacht because it has more efficient fuel use and doesn't pollute the environment as much.