In Jesus message to St. Peter will give you the keys to the kingdom of heaven.Whatever you bind on earth shall be bound in heaven and whatever you loose on earth shall be loosed in heaven
There have always been opponents to the pope’s authority and universal jurisdiction over the Church, also called papal primacy
It's has origins directly from Christ’s commissioning of Peter to be the visible head of the Church. The teaching was reaffirmed several times.
A difference was that the Second Vatican Council began its teaching first on the ministry of the bishops and The First Vatican Council deals with faith and morals.