Company accused of aggressively marketing powerful and addictive painkiller even as it became clear drugs weren’t as safe as advertised; settlement said worth $12 billion