Failure to reach an agreement underscores the struggles Europe has faced in rebuilding its military capacity after decades of underinvestment.