Shamima Begum had her citizenship stripped for joining terror group; legal battle seen as test of how Britain will treat nationals who join jihadists