As Mr. Adams began speaking at the commencement service, many of the graduates, in their caps and gowns, turned away from him in a show of protest.