The first American pope says his criticism of world leaders who spend billions on war was written weeks before his feud with Trump escalated.