EU countries, the European Commission and EU lawmakers clinched a deal late Wednesday to curb the powers of companies such as Google and Apple Inc with new rules.