A crucial question for some Tory and DUP MPs is the European Court of Justice’s role in settling agreement