In Italy and across the world, the Vatican is taking positions at odds with nationalist movements. Donald Trump’s attacks on the Pope have backfired