The Pope was the spiritual leader of the Church during the Middle Ages. What reason did the Church give for claiming authority over kings?