In 1938 , Pope Pius XI commissioned an American priest to draft an encyclical on the evils of Hitler 's racism and anti-Semitism , a document that might have gone a long way toward averting the full scope of the Holocaust .