The European Parliament and Council have endorsed a law aimed at boosting investment in clean technologies