The European Commission could definitely ask governments (the European Council) to agree a new treaty or protocol that grants them veto powers on "federal security grounds", for sure. The European Parliament would likely rubber-stamp it too. Considering the current (and increasing) right-wing majorities across the continent, though, I find such scenario very unlikely.