Brazil’s widespread protests went from peaceful to violent Monday night, with police in Rio de Janeiro firing rubber bullets and tear gas at demonstrators who were burning cars and ravaging buildings.