At least 29 people, including two police officers, were injured and taken to hospitals across Sydney.