It's about what the money is spent on and where it goes. I very much suspect that the Republicans who are in favour of increasing NASA's budget are doing it to secure 'jobs' in their own districts and are not doing out of the goodness in their hearts or their desire for more knowledge in the USA about science or space.
They often say as much in their speeches. "We will bring jobs!" etc. NASA is a means to an end for a lot of Republicans specifically, as they focus on economy and jobs from the spending bills, not the resources developed or the knowledge learned or the science experiments done or the kids they have inspired to become engineers or anything like that at all.
Republicans rarely support basic research, even at NASA.