I was hoping someone with more knowledge of the situation would chime in..
My understanding is that:
Acting as a group the EU has made some "pragmatic" decisions like fishing in western Sahara waters, but probably found it relatively easy to turn down less economic and/or more illegal activities as a block. If the UK were to more fully ignore UN decisions and accept natural resource from the disputed lands, the loss of respecting the rules is much more a loss for the EU than Morocco.