Complex sentence: Germany sent troops to help Latvia oust the Bolshevik troops, but after this was accomplished the Germans refused to leave, in violation of the Treaty of Versailles.
Split into simpler sentences: Germany sent troops to help Latvia oust the Bolshevik troops. However, when the German and Latvian troops did this, the Germans refused to leave, going against the Treaty of Versailles.