The agreement comes after the American Federation of Teachers filed a lawsuit against the Department of Education.