> all countries have a veto on such matters I believe
In most cases, a veto can't happen unless the following conditions are met:
1) Less than 55% of total Member States (less than 15) voting
AND
2) The voting Member States represent less than 65% of the total EU population
AND (assuming at least one of the conditions above aren't met)
3) At least four countries vote to block the measure
OR (if not all countries are voting)
4) The minimum number of countries that represent more than 35% of the total EU population, plus one country, vote to block the measure.
This prevents e.g. 3 big countries from blocking the others.