The demonstrators, accused of violent attacks on rally participants, get terms ranging from 6 months to 2 years.