Who gave the Papal States to Pepin and how?

i think Italy , ancient religions