The Confederation of African Football (CAF) has officially overturned its earlier ruling on the AFCON final, awarding victory to Morocco following a successful appeal.