Oil company has sold assets worth more than $40bn to pay for fines and liabilities from the 2010 Deepwater Horizon oil spill