Mustafa Dirani, who was jailed for 28 years after being found guilty of acting as a lookout in the terror-related shooting of Sydney police accountant Curtis Cheng, has won an appeal against his conviction.