How did the United States involvement in forge in wars at the turn of the 20th century change its role in world affairs