XYZ affair was when French officials asked for payment to not attack American Ships, angered many americans. People started criticizing the Federalist ruled government. Resulted in John Adams passing the Alien and Sedition acts, which banned any criticism of the president, also allowed for the President to arrest anyone without actual evidence. Virginia and Kentucky resolutions were made to stop this, and passed successfully. In the midnight appointments, John Adams implemented federal judges, surprising the country.