The unelected European Commission came “very close" to stripping Poland of its voting rights in the EU Council.