I think the way that democratic governments can achieve these long-term plans is by establishing (or using existing) entities to complete these goals on their behalf.
An example that comes to mind is the Apollo program: JFK announced a national goal to land a man on the moon in 1961 and this was finally achieved in 1969 - two presidencies (Johnson, Nixon) and one change of party (Dem->Rep) later - with NASA being that independent responsible entity.
Yes, but this sort of thing seems increasingly unlikely in an ever more partisan world. Especially when would-be autocrats are wrecking as many institutions as they can.