The president’s sudden interest in the rights of protesters is hardly in line with the vision he has espoused for decades.