The last 40 prisoners at Guantánamo Bay have been transferred to an immigration detention facility in Louisiana.