Spain exceeded EU-mandated renewable energy and energy efficiency targets set for 2020, the Spanish ministry for the ecological transition said.