An Egyptian court has handed down its final ruling in the trial of 11 people, including toppled president Mohamed Morsi and Al Jazeera journalists, on leaking state secrets to Qatar.