After the German U-boats sank more than three million tons of shipping, a new and vital source of intelligence gave the Allies an opportunity to transform the war and shape victory from defeat in the Atlantic.