Explain how the Russian Revolution and the entry of the United States affected the course and outcome of the war.