Even after that shift, the Catholic Church continued to be a fundamentally reactionary force in the realm of social policies, all the way through the second world war.
The care for workers was a thing long before Marx. Rerum novarum (¶20) quotes scripture on the topic:
> To defraud any one of wages that are his due is a great crime which cries to the avenging anger of Heaven. "Behold, the hire of the laborers... which by fraud has been kept back by you, crieth; and the cry of them hath entered into the ears of the Lord of Sabaoth."(6)
Jesus himself was a tradesman, often translated as "carpenter":
* https://uscatholic.org/articles/202205/was-jesus-a-carpenter...
Marx's caring for the downtrodden and weak is itself a Christian concept; in contrast, Nietzsche hated weakness and Christianity for its support of those that are (he was not a fan of the Sermon on the Mount).