A Moroccan court has upheld the prison sentences of 18 Senegalese football fans charged over a pitch invasion during the 2025 Africa Cup of Nations.