The government faced criticism for arresting hundreds of people and using tear gas and water cannon to break up a protest against laws that allow for detention without trial.