The mayor’s views on policing are tied in part to his relationships with families of officers killed on the job, as well as with police abuse victims.