European NATO allies agreed on Thursday to jointly buy planes and submarines and possibly open a new command headquarters for elite troops.