The European Council needs the approval of 16 out of 28 member states, representing at least 65% of the total EU population, to pass the legislation to the directly elected European Parliament, which will vote on it by a simple majority.
Veto is available in limited number of cases otherwise unelected body can force member states to implement law such as this provided this will be accepted in European Parliament. People elected to parliament are not the brightest so this is likely going to pass with a bit of lobbying. I am so happy UK leaves this circus.