President, judiciary chief warn against harming national security after Iraq elections