Protests, which grew out of opposition to the controversial foreign agents law, morphed into a larger sign of discontent against the government and the direction it is taking the country.