A protest against the Australian government's education reforms in Sydney has turned violent, as security forces pepper-sprayed dozens of student activists.