BRUSSELS—Sales of Apple Inc. products that use the company’s proprietary Lightning charger port would be banned in the European Union under a deal lawmakers agreed Tuesday, aiming to set a common charging standard for mobile phones and other portable electronic devices...