the papacy had called into question the legality of philips actions and so while the pope tried to convince them that they were justified , he also had to persuade the impatient king to do things by the book .