How did the rise of dictatorships and the attack on pearl harbor cause the united states to become involved in world war 2?