Congresswoman Karen Bass was elected mayor of Los Angeles, making her the first woman and second African American to lead the city. The race was dominated by voters’ concerns about homelessness.