This vaguely reminds me of an old book or movie where the premise is that in the distant future someone finds an old copy of the Constitution. Does anyone remember that?
I believe you’re referring to an episode of Star Trek “The Omega Glory.” You can watch it online at the NBC site.
If you're looking for additional reading material, try Ayn Rand's "Anthem." Collectivism gone wild.