Protesters packed up their belongings and left after the Philadelphia university’s president announced a decision to have police clear the encampment.