What do you mean "allow"? Spain is a sovereign state, this is their decision alone.
Being sovereign hasn't stopped the Trump administration in Venezuela, Iran or Cuba.