Federal officials on Thursday approved a new type of pain drug designed to eliminate the risks of addiction and overdose associated with opioid medications like Vicodin and OxyContin.