The Court of Arbitration for Sport ruled that Senegal were the rightful winners of the 2025 African Cup of Nations.