(1) While communism represented the latter , the United States represented the former .
(2) Whereas communism represented the latter , the United States represented the former .

Do these two sentences mean the same thing?
yes