First, you haven't supported your first statement at all - if everyone stopped trying to prevent global warming, what is the probability of successfully preventing global warming? Global warming could be averted by events such as a supervolcano or comet impact
I didn't support the first statement at all because it didn't need supporting. In fact, I chose a goal that is extremely unlikely to succeed so that it couldn't be claimed that the selected 'cause' was too redundant a cause to be meaningful. The reason the first statement needs little support is because the alternative includes the subgoal of making an omnipotent being exist, rewriting history such that He created the universe and all that is in it and causing an entirely new 'heavenly' reality to come into being. You yourself provided two ways that make 'prevent global warming' less of a lost cause than that of making God exist, have always existed and be the cause of all that is. (The capitalisation of 'God' indicating reference to the specific god that did those things, not some computer that someone wants to call a 'god'). If you want another example that is less destructive, just try "someone builds an FAI and the FAI fixes global warming as a side effect"---that is at least possible within the laws of physics, even if it is rather difficult.
but "preventing global warming" is a subgoal of "preserve the environment" or "reduce existential risk" so such disasters would not really count as accomplishing the task.
Prevention of global warming could be adopted as a cause due to it being instrumentally useful in achieving some other goal. That doesn't mean it isn't a cause or that achieving the goal doesn't mean the goal is achieved. Ultimately all causes could be declared to be the mere subgoals of another goal, right up to an ultimate cause of "maximise expected utility".
Second, if your mission is to raise a child that is accepted into heaven, it could be successful if somebody creates an AI which simulates the Christian God and uploads dead people into simulated realities in engineered basement universes or something.
If I asked the believers in question whether a simulation of an upload of their dead child is what their goal is they would disagree. Causes being abandoned and substituted for other more practical goals is a boon for those adjusting their strategic priorities but still means the original cause is lost.
The quote "The only truly lost cause is that which has been abandoned" is simply denotatively false even though it can be expected to be the kind of things people may use to be inspirational. The kind of quotes that I like to see are those that manage to be actually correct while also being insightful or inspirational.
I agree with you that a cause does not become "truly lost" simply because you abandon it - you might just get lucky and have your goal state realized by some unforseeable process. So yes, the quote is strictly denotationally false. But "we might get lucky and see our goal realized through dumb luck even after we've given up" is not a really valuable heuristic to have. "shut up and do the impossible" is a valuable heuristic, and that's what I got from the quote, reading between the lines.
Here's the new thread for posting quotes, with the usual rules: