What does "a man among men" mean?
Solution 1:
It means "an exemplar." One who should be emulated.
Solution 2:
While I can't provide any answers as to the origin of the phrase, the meaning is closer to the latter than the former.
What the phrase is implying is that the subject possesses attributes or qualities that set them above an already superior group. For example, if the only differentiation between a Gentleman and a regular man was physical beauty (such that all gentlemen were handsomer than non-gentleman) to say someone was "a man among men" would imply that out of a group of handsome gentleman, who are, by our definition, already handsome, this person is so much more handsome than the rest that the other gentlemen appear plain by comparison.
It's a bit of a different question as to what qualities "man among men" is referring to as it relates to people, however.
Solution 3:
It could go either way. It all depends on the context. Particularly the speaker's tone of voice. Whether they speak of someone/something in admiration or in disgust.
Typically, I find that this specific case (man among men) usually means the second, and when speaking of other objects (a tree among trees) it usually means the first.