Law enforcement’s encounters with people on the spectrum often go wrong. Some police departments are trying to change that.