Vivendi sealed a deal to sell its Brazilian broadband unit to Spain’s Telefonica in a nearly $10 billion deal.