For a half century, as U.S. troops were stationed in far-flung locations, facing the despair of war, America’s most famous comedian offered them hope.