Two Iranian nationals have been charged in the UK with planning a terrorist attack against the Jewish community in northern England.