California’s top 10 public transit agencies must survey riders about safety, sexual harassment, and racial and gender-based discrimination in order to learn more about threats to riders of buses and trains, according to new requirements spelled out in legislation signed into state law.