Spain and France have broken ranks with some of their NATO allies by insisting that Europe needs to develop its own army and wean itself off military dependence on the United States.