A prospective legal challenge has been initiated in a bid to prevent a Stormont vote on continuing post-Brexit trading arrangements for Northern Ireland.