Morocco has charged more than 2,400 people over recent youth-led protests that turned violent, a sweeping response to some of the country’s largest anti-government demonstrations in years.