The EU signed a “historic” deal to integrate 23 armies to shake off its US dependence