Indonesian security officials say the government would find a way to ensure an alleged Southeast Asian terror chief doesn't return to Indonesia under President Barack Obama's contentious plan to close the U.S. prison at Guantanamo Bay, Cuba.

Indonesia's coordinating minister for political, legal and security affairs Luhut Pandjaitan says Tuesday that officials are "discussing all necessary steps" to ensure Hambali, also known as Riduan Isamuddin, stays in a U.S. prison.

Obama's plan which involves transferring some detainees to U.S. soil and sending others to foreign countries was rejected by Congress last month. Republicans have said they are preparing a legal challenge in the event Obama presses ahead with the plan.

Hambali has been accused of heading the al-Qaida-linked Jemaah Islamiyah militant group blamed for a string of bombings in Indonesia.