German utility RWE AG said Monday it closed the sale of its oil-and-gas unit Dea for 5.1 billion euros ($5.7 billion) to a group of Russian investors led by Mikhail Fridman, who threatened legal action if the U.K. government blocked the British part of the deal.