An Oklahoma judge ordered the company to pay more than half a billion dollars for contributing to the state's drug epidemic.