Judge rejects legal bid to have core element of Crown case in long-running terrorist trial thrown out