A William Troost-Ekong penalty gave Nigeria a 1-0 victory over hosts Ivory Coast at the 2023 Africa Cup of Nations on Thursday.