You can't understand where the Catholic Church is coming from unless you understand that........
1. The policy began in the late 19th century as a reaction to what the church called "modernism".... defined as vulgar materialism [ the social results of capitalism, not capitalism itself] and socialism/atheism. The 19th century encyclical Rerum Novarum is the ideological centerpiece of this.
2. That there was no contradiction between 1, above, and the church's tolerance of nationalist-based governments. Hence the ease of ability to slide into support of fascism. Note the linkage of fascism to militarism to Catholicism in most countries where fascism took hold. Exception which underscores the rule: Greece
under the junta, 1960s-1974.
3. Vatican II, 1960s, led to Liberation Theology in Latin America, Kairos on the African and [Southeast]Asian continents. It was a major ideological move away from Novarum Rerum, or more accurately a social-justice based affirmation of the progressive aspects of Novarum Rerum, which despite its reactionary content is, ironically, a source of the church's ideological "preferential option for the poor".
4. The papacies of John Paul II, Benedict XVI, and now Francis ....... are the church's reactionary policy of restoration back to pre- Vatican II.
5. There are all kinds of responses from different corners of the church. One of the better sources for monitoring these things is the Kansas City based National Catholic Reporter.