As firefighters fought to control deadly wildfires north of San Francisco last month, a small unit of Alphabet Inc.’s Google had a more modest goal. It had employees driving cars around loaded with air-monitoring equipment to measure how badly the smoke was polluting the air.