Specialty pharmacies and online companies that have been selling off-brand copies of two blockbuster drugs for obesity and diabetes will need to phase out their versions next year under a federal decision issued Thursday.