The US military has repatriated two Malaysian men from its prison at Guantánamo Bay, Cuba, who admitted to committing war crimes.