Total SA agreed to buy a stake in a project in Uganda from Tullow Oil Plc for $900 million as a recovery in crude prices accelerates the pace of deals in the energy industry. French oil major Total will acquire a controlling stake in the Lake Albert development, the companies said Monday in separate statements.