WASHINGTON — The U.S. has transferred two Malaysian detainees at the Guantánamo Bay U.S. military prison to their home country after they pleaded guilty to charges related to deadly 2002 bombings in Bali and agreed to testify against the alleged ringleader of that and other attacks, the Pentagon said Wednesday.

The transfers, and the repatriation Tuesday of a Kenyan man who’d been held at Guantánamo for 17 years without charge, come as rights groups and others push Joe Biden’s administration to end the detention of more than a dozen other men held there without charge, and amid uncertainty over the incoming Donald Trump administration’s plans for Guantánamo.

Prosecutors say Mohammed Farik bin Amin and Mohammed Nazir bin Lep worked for years with Encep Nurjaman, known as Hambali, an Indonesian leader of al-Qaida affiliate Jemaah Islamiya. That includes helping Nurjaman escape capture after Oct. 12, 2002, bombings that killed 202 people at two night spots in Bali, U.S. officials said.

The two men entered guilty pleas.

— The Associated Press