The bankruptcy filing comes just days after the company behind OxyContin reached a tentative settlement with several state and local governments.