What hastened the US's entry into World War 1?

The largest factor was Germany's program of unrestricted submarine warfare; even attacking neutral ships in British waters, resulting in the deaths of many Americans.