The US has transferred two detainees at Guantanamo Bay after they pleaded guilty to charges related to the 2002 bombings in Bali.