The US agreed to the carving up of Europe and chose not to oppose Stalin and thus East Germany was ceded to the Soviets.
The Marshall plan was an attempt to stop the bleeding as it were and keep West Germany from falling. NATO was the icing on the cake which pitted the rest of Europe and America against the Soviets.