A consumer and Sanofi-Aventis told an Illinois federal judge Friday that they've agreed to end litigation over allegations that the company's maximum strength Selsun Blue anti-dandruff shampoos contain chemical compounds that can further exacerbate scalp issues and cause hair loss.