Yale University and the student group Ellis for Rachel, and two other students, reached a settlement in a federal class action lawsuit alleging discrimination against students with mental illness.