A protest by New York University students seeking negotiations with school officials over financial and academic issues ended Friday after almost 40 hours, with students leaving a dining room that had been barricaded and a school spokesman announcing the suspensions of 18 of the participants pending a disciplinary review.

About two dozen students were still involved in the protest when security guards removed barricades made of tables and chairs in the late morning and swept into a third-floor dining room inside the Kimmel student center, said Banu Quadir, 21, a senior who participated in the demonstration.

Ms. Quadir said that those inside the room were photographed and asked to present identification and that school officials distributed letters to N.Y.U. students that stated, “You are suspended from, and classified as a persona non grata at New York University.”

Shortly after 1 p.m., several dozen students rallied across the street from the student center to acknowledge the protest.