A federal judge has ruled that a teen accused of planning a terror attack on the Mall of America in Minnesota will remain in custody.