The European Commission approved the U.K. government’s renewable energy contracts and so-called capacity payments, saying the program that benefits power plants complies with state-aid rules.