STUDIES:
849/
“After recruiting a [most qualified] Black applicant in one job selection task, participants were more likely to express a preference for a White in a second, unrelated [police] job selection task… Moral credentials… reaffirm one’s self-image as a nonprejudiced person."

Moral Credentials and the Expression of Prejudice
Journal of Personality and Social Psychology
Vol. 81 Issue 1, pp. 33–43,
2001
Comment on this study on its Twitter thread.