Ecuador’s unrest is part of a broader trend pitting the population against right-wing governments across Latin America.