eBay, the online-auction website, is selling its majority stake in Skype, the internet-phone company, for about $2 billion (£1.2 billion).