Dozens of people have been charged with drugs offences across Sydney.