EU strikes deal to cut greenhouse emissions