Political polarization shaped attitudes and outcomes related to COVID-19