People accused the city’s Board of Supervisors of racism and sexism in choosing the interim mayor.