The European Commission has expressed doubts about a planned €4.35 billion compensation scheme for German energy companies, agreed as part of the country’s plan to phase out coal by 2038, saying the sums involved are “likely to constitute state aid” under EU law.