The thing you have to understand is that your initial statement has literally no foundation to it. There isn't any solid proof that program failures like this are direct means to keeping workers employed (where it is implied that they otherwise wouldn't be). I am also not really sure how some crazy guy (I am being hyperbolic) betting hundreds of millions of dollars (some of it his own funds) somehow becomes analogous with a purposefully obtuse military industrial complex scheme to keep people employed.
There are certainly cases where the government soaks up funding, gives it to a company, for absolutely no other reason that we can tell other than to just funnel money along into their little corner of the country (and thus their constituents).
But I have a really hard time believing that is the case here.