The world 's largest drug company has agreed to pay $ 2.3 billion in fines and penalties for marketing some drugs improperly .