What events motivated the us to join war in world war 1?