A government program that helps older people with shopping and transport has been extended until 2029 after ongoing uncertainty about its future.