The Soviet Union, like every state in history, maintained a system of class rule through violence, with war/killing as the ultimate guarantee of state authority.
But there is a vast difference between the faithful practical implementation of Marxist praxis under Lenin and the pseudo-Marxist rationalizations of Stalin and his successors, reflecting a fundamental reversal of the nature of government. Lenin’s government, put in power on the basis of a social revolution by workers against the rule of the bourgeoisie, was a government of, by, and for the proletariat, a democratic dictatorship of the working majority over anyone who would presume to dictate to them as rulers. Stalin’s government, put into power by a political counterrevolution of a (privileged) petit-bourgeois caste (which, again, could never have succeeded without the assistance of international capitalism), was still an instrument of proletarian social rule (hit on as a compromise between a proletariat too weak to rule without the aid of that privileged layer, and a bourgeoisie too weak to restore capitalism), but the government was fundamentally hostile to the revolution that had put the proletariat in power, and in seeking first and foremost to secure their special privileges aimed to reproduce the hierarchies of class privilege typical of capitalism and to systematically undermine the Leninist revolution, even when sometimes obliged to make leftist feints to outflank the forces seeking to restore communist rule.
This class difference in the political program of the government was reflected in the stark reversals of the fundamentals of the Marx-Lenin program on the essentials of Marxism, demonstrating that it was not the “attempt to implement Marxist principle” but the abandonment of Marxist principle for capitalist-inspired pragmatism that explained the Stalinist regime.