The world number one reached a settlement with the World Anti-Doping Agency after two positive drug tests in 2024.