Bill Pratt writes:
There is a misconception, popularized by books like The DaVinci Code, that the way the books of the Bible were chosen consisted of politically infused church councils voting on the books they liked, and voting out the books they didn’t like. However, a careful reading of church history totally disproves this misconception.
Bill’s entire post can be seen at How Did the Early Church Recognize the Canonicity of a Book? | Tough Questions Answered.