During World War I, the United States initially maintained a neutral stance before eventually entering the conflict. Various factors contributed to this shift, including economic interests, unrestricted submarine warfare, and political alliances. Which major event directly influenced the United States to declare war on Germany in 1917?