The way I read the spell, it takes only one spell slot to create a Spell Glyph, to quote the text:
"You can store a prepared spell of 3rd level or lower in the glyph by casting it as part of creating the glyph."
So, I don't see why a 9th level spell can't be put in a glyph as it should expend...