A judge formally approved a plan Friday to turn OxyContin maker Purdue Pharma into a new company no longer owned by members of the Sackler family and with its profits going to fight the opioid epidemic.