Spin dependence of heavy quarkonium production and annihilation rates: Complete next-to-next-to-leading logarithmic result