What role did unrestricted submarine warfare have on the us during world war 1?

We warned them not to return to "un-restricted warfare." They did it anyway; we declared war.