The law often shields police officers from accountability — and reinforces policing that harms Black people, homeless people and the mentally ill