Science isn't free from politics. But the blend between science and politics varies from maths on one end (fairly free of politics) to sociology one the other (heavily infused with politics).
The thing is, if your science reinforces dominant beliefs then you're going to get the funding, if it goes against the dominant beliefs then you're going to have a tough time getting funding. How right or wrong you are is secondary to that.
And it's not just the right-wing who do this. In spheres where left-wingers dominate, you're not allowed to research actual phenomena, if those phenomena confront the left with uncomfortable truths.
e.g. Larry Summers, president of Harvard was asked about why so few women advance to high levels in science, and because of one alternative suggestion he cited among a number of points, he had to resign. What did he say exactly?
What he said was just looking at the existing data. Men and women score the same
average score on e.g. IQ tests. So that should be equal.
However - it's well known that men have a higher standard deviation on many types of test scores. That means women cluster more to the middle, while men are over-represented at both the top and bottom of the distribution. If you look at e.g. people who score greater than 150 IQ or less than 50 IQ, there is a huge surplus of men in these samples compared to women (of course, the 50-150 IQ sample has a complementary surplus of women, which might explain why there are more female undergraduates). Women's IQ has an SD of ~14, whereas men have an SD of ~15. That might sound small but at the range of 150+ IQ (or below 50) it means
about 5 times as many men as women. Men are more likely to be
either geniuses or cretins. So ... if you have a job which
requires 150+ IQ (or a prison full of < 50 IQ people), you'd expect 80% of the group to be male, and that's just off known statistical variations, before any sort of bias is even considered.
This is what the data tells us. You'd expect the raw data to be part of the science. But ... you're not allowed to do the research into this. You'll either get
fired or you'll get a mob attacking you when you try and give a talk at a university, as the author of "the bell curve" did.