Italy's Eni agreed to sell a 49.9% stake in pipelines carrying Algerian gas into Italy to fellow energy company Snam for €385 million ($435.8 million).