during civil war korea which side did united states support ans why

during the civil war in korea, which side did the united states support, ans why?