But military leaders say they’ll still face tough challenges and must keep transforming their recruiting.