It's probably worth noting that Star Trek
isn't just the work of a single individual. Given that the various episodes have been written, directed, acted, and produced by numerous individuals, of diverse beliefs, it's unrealistic to expect to find one single, immutable approach to religion throughout.
And reasonable people can interpret things differently. I once took part in a very cordial public debate on this very topic, opposite some sort of minister or clergyman who was also a devout Trekkie. I argued that the "Star Trek was an essentially secular vision of the future, but the other guy (whose name and denomination sadly escapes me) had no trouble finding evidence of Christian messages and values in STAR TREK.
Hey, if it works for him . . . cool.