Religion was invented by Humanity.
So... species-wise, that particular influence was/is internal.
As such, there is nothing 'idealistic' about a non-monetary society that implements cybernation and automation as much as possible coupled with relevant general education of the entire global population.
It's merely a different way of thinking that could result in a world that is FAR better than what we have now (but it wouldn't be 'perfect' or a 'utopia' because such concepts are delusions).
Star Trek merely decided to go the 'culturally accepted' route and tell you that nothing short of violence and exposure to alien life (or fear of it) could change our way of thinking (again... a byproduct of a system that creates film-makers who know next to nothing about Human behavior or how technology works) - a similar thing happened in the movie 4th of July (which was a joke in itself).
Denying the premise that we can create this change on our own simply because the present socio-economic system creates a perception that anything else 'won't work' (even though various implementations of holistic methodology on a smaller scale demonstrate its possible and needs proper scaling to accommodate the globe coupled with other factors) is quite frankly, a cop-out... an easy way to 'give up'.