president woodrow wilson had promised to keep the united states out of the war , but as german submarines began torpedoing unarmed passenger ships , and stories of german atrocities spread , pressure began to build up for america to help the allies .