St. Alphonsus Ligori, Bishop and Doctor of the Church