Man who killed stranger while on drugs approved for treatment program though deemed ‘a significant threat’