Uber Technologies Inc. and Lyft Inc. are spending millions of dollars to provide drivers with access to COVID-19 vaccines and offering tens of millions of free or discounted rides to vaccination sites for people in communities that lack access to transportation and healthcare services.