Quarkonium cross sections and polarizations in pp collisions with CMS