I think that’s typically considered the difference between a “politican” and a “statesman” (or statesperson)
Politicians care about winning elections and staying in power, whereas statesmen actually give a damn about the future over getting eternally re-elected on empty promises.
https://www.youtube.com/watch?v=fkNqNYkwhlg