As Mayor Eric Adams began speaking at the law school’s commencement service, many of the graduates, in their caps and gowns, turned away from him in a show of protest.