U.S. regulators approved the first medicine with an embedded sensor to help keep track of whether patients with mental illness