My, my!  Haven't you read the early Social Encyclicals from Pope Leo XIII like Rerum novarum [1891], Pius XI Quadragesimo anno [1931] [which defended the rights of workers to safety on the job, the right to unionize], John XXIII Mater et magistra [1961] which defended just wages for workers.

These HAVE BEEN in place for all of this time.  But you also failed to understand that just as Christ defended and cared for the poor, so the Church gives a preferential option to the poor---the refugee---the displaced.