Gregory XIV, Pope