Forgive me, but the government had loads of opportunities to divert the money from other sources in order to 'fix things right here on Earth' in the past and nobody ever did anything.
"Two wrongs" or "one bad bx justifying another" fallacy.
Money put into the space program creates jobs, stimulates the economy, and drives technological progress. It isn't wasted money to begin with.
A bit hard to tell when the effort is half-hearted, but it would be more apparent if they actually gave NASA a bit of coin to play with.
Someone should do a study and try to figure out what the ROI actually is for NASA's budget. My guess is that it was higher when their funding was higher.