He settled in the US and later became a spy for Germany in both World Wars