It is honestly beyond Star Trek. The Computer was extremely capable, but also very literal and creative interpretation was not a strong point. Data painted, but not very well. Reality is ending up to be more interesting than our wildest fantasies from a few years ago.
To be fair, climate change is already "solved" in that we know how to reduce, slow, or possibly even halt it. It's not a matter of figuring out how, it's a matter of getting people to actually care enough to do those things.
Maybe with sufficient intelligence we can solve it with geo-engineering, which has its risks but is generally more tractable than the social engineering that conventional solutions rely on.
We know how to do it while also massively decreasing living standards for most of the developed world, which would likely lead to massive civil unrest. That tends to lead to war, which seems like a surer way to kill civilization than even unmitigated climate change. So we don’t really have a solution.