An appeals court in Egypt has upheld a 20-year prison sentence for former president Mohamed Morsi, the first final verdict against the ousted leader.