US president says other countries in the Middle East could be tasked with rebuilding parts of the war-ravaged enclave.