The same verses of Quran also tell us that Jinns were also direct addresses of this directive:
وَإِذْ قُلْنَا لِلْمَلَائِكَةِ اسْجُدُوا لِآدَمَ فَسَجَدُوْا إِلَّا إِبْلِيسَ كَانَ مِنَ الْجِنِّ فَفَسَقَ عَنْ أَمْرِ رَبِّهِ أَفَتَتَّخِذُوْنَهُ وَذُرِّيَّتَهُ أَوْلِيَآءَ مِنْ دُونِیْ وَهُمْ لَكُمْ عَدُوٌّ بِئْسَ لِلظَّالِمِيْنَ بَدَلًا. مَا أَشْهَدْتُهُمْ خَلْقَ السَّمَاوَاتِ وَالْأَرْضِ وَلَا خَلْقَ أَنْفُسِهِمْ وَمَا كُنْتُ مُتَّخِذَ الْمُضِلِّيْنَ عَضُدًا.
Remember when We directed the angels: “Prostrate before Adam.” They prostrated except Iblis. He was among the jinn. So, he evaded the directive of his Lord. Now, leaving Me, are you making him and his progeny as your guardian, even though they are your open enemy? What an evil substitute these wrongdoers are adopting! [They are making them My associates whereas], I called none of these [devils] at the time of creating the heavens and the earth nor at the time of their own creation. I am not One Who makes those who lead astray as My helpers. (18:50-51)
The reason He was cursed was because of His arrogance in front of God, please see:
Discussion 35995 • Reply 36942
Discussion 35995 • Reply 37111
Discussion 35995 • Reply 36104