The Cook County Sheriff’s Office aims to put mental health workers in the field virtually as cities grapple with alternative police responses.