Ruben Gallego won precincts closest to Maricopa County’s urban core, including some won by Republicans in other races.