Senegal has been awarded the Africa Cup of Nations title after successfully appealing against the decision to strip them of it.