EU adopts renewable energy measures