Six months after hiring former New York City mayor Rudy Giuliani’s consulting firm, Purdue Pharma settled a Florida state investigation that had threatened to expose early illegal marketing of its blockbuster drug OxyContin, company and state records show.