Weary,
That's false. Here's just one article showing the UN having a critical tone on the harsh response from the Spanish Government.  It's clear in the article the UN experts were open to a referendum being held.  https://www.theguardian.com/world/2017/sep/28/un-rights-experts-criticise-spanish-efforts-to-block-catalan-vote