The reason that Russia signed the Treaty of Brest-Litovsk is because Lenin wanted to end Russian participation in WWI. The main effect was on Germany because it freed all of their troops and resources used to fight Russia. It also caused an irreparable breach between Bolshevik Russia and the Allies.