The United States entered tha war because of the Germans' decision to resume the policy of unrestricted submarine warfare , and the so-called "Zimmerman telegram," intercepted by the British, in which Germany floated the idea of an alliance with Mexico .