The drug, shown to be almost as effective as opioids for short-term pain, is the first fundamentally new kind of painkiller to win FDA approval in more than 20 years.