وَ أَصْحابُ الْمَشْئَمَةِ ما أَصْحابُ الْمَشْئَمَةِ (56:9) وَ الَّذينَ كَفَرُوا بِآياتِنا هُمْ أَصْحابُ الْمَشْأَمَةِ (90:19)
They are the same word, and are not spelled differently.
You are using Tanzil.net: The issue is that in the first aya, you seem to have chosen the text format of "Uthmani" (under the "quran" toolbox), while in the second aya you have chosen the text format to be "simple". If you choose the same text format in both ayat, you will see that the words are just the same.
To understand the difference between the Uthamni and Simple formats, checkout this link.
This question affects only the spelling of the Qur’an, not the reading, which in both cases is ʼaṣḥābu l-mašʼamati. In modern Arabic orthography you write this as أَصْحابُ الْمَشْأَمَةِ , but in the older orthography you do not write either the second alif in the first word, or the second alif in the second word, so you get أَصۡحَـٰبُ ٱلۡمَشۡـَٔمَةِ .The long vowel in the first word and the hamza in the second are not indicated in the rasm, but only by diacritics.
PS. In the last word the fatha should be above the hamza, not below it. For some reason this does not show properly with the SE font. I hope you understand what I am trying to convey. والله اعلم