A student accused of working with a Chinese Communist Party representative to take photos of airplanes in Chicago — and lying about it to U.S. investigators — will be detained pending trial, a judge ruled.