The crowd of protesters, energized by the sudden appearance of the Boston and Transit police officers, chanted, ‘‘The people united will never be defeated,’’ “This is a peaceful protest,” and “the whole world is watching.’