New policies limiting the teaching of race and gender issues led administrators and professors to change hundreds of courses.