The correct effect of the XYZ Affair is: It turned public opinion against France.
The XYZ Affair, which took place in the late 1790s, involved diplomatic tensions between the United States and France and led to a quasi-war. The revelation of the affair and the demands made by French officials (referred to as X, Y, and Z) angered many Americans and resulted in heightened anti-French sentiment.