The generic drugmaker’s U.S. unit also must divest drug line for cholesterol treatment pravastatin.