Yes you can
Jeremy Crawford tweeted the following.
A spell you duplicate with wish can be cast at a higher level, as long as that level is no higher than 8th.
The wording of Wish for casting other spells is:
The basic use of this spell is to duplicate any other spell of 8th level or lower. You don't need to meet any requirements in that spell, including costly components. The spell simply takes effect.
Glyph of Warding have the following phrase:
Spell Glyph. You can store a prepared spell of 3rd level or lower in the glyph by casting it as part of creating the glyph. [...] If you create a spell glyph, you can store any spell of up to the same level as the slot you use for the glyph of warding.
For example, you can cast Glyph at 5th level, then use Wish to cast Planar Binding, Wish would null the material cost of Planar Binding.
Just remember that Wish can only replicate spells up to 8th level. So you could use your 8th level slot to cast Glyph then use Wish to store any th8th level or lower spell.