Judge rules to keep Virginia man in jail until trial on aiding terror charge