The Lisbon Treaty Article 42.6 and 46 TEU contains a legal base to establish a closer sooperation between some EU member states with special mutual obligations or greater miltary capacity.
The decision can be taken with
qualified majority, while specific decisions requires agreement between participating countries.