Pope John XXIII
Mater et Magistra §20
Mater et Magistra: On Christianity and Social Progress
20 As for the State, its whole raison d'etre is the realization of the common good in the temporal order. It cannot, therefore, hold aloof from economic matters. On the contrary, it must do all in its power to promote the production of a sufficient supply of material goods, "the use of which is necessary for the practice of virtue." (7) It has also the duty to protect the rights of all its people, and particularly of its weaker members, the workers, women and children. It can never be right for the State to shirk its obligation of working actively for the betterment of the condition of the workingman.
Source: Mater et Magistra (Vatican.va)