NASA's needs
It seems 2 things are very much in NASA's favor:
It provides lots of jobs all over the US (and therefore is defended by politicians).
It helps science and technology and therefore US technical know-how and exportations thoughout the world.
Are americans aware of their luck by having NASA ?
