Students have been staging a sit-in at the university president’s office for weeks, and some handed him Pride flags at graduation.