The pontiff called out companies that seek "dizzying" profits at the cost of environmental pollution.