How did Stalin become involved in the government?