Texas A&M University is ending its women’s and gender studies program and changing the syllabuses of hundreds of courses.