As Leo XIV prepares his first encyclical, technology firms and Western diplomats have worked to make their case inside the Vatican.