Can you explain how you want science to be influenced by "social or political ideology"? Do you just mean developing weapons during wartime and medicine during epidemics, or something beyond that?
As far as how I 'want' it to be influenced, I think civil society should be entitled to discuss the implications and validity of research that is done (in this case, racial or ethnic factors in 'standardised', culturally based tests of 'intelligence'), as well as set large scale priorities as to where effort should best be focused, like in your examples.