Massachusetts law meant to protect people with mental illness may make them sicker