Trump’s pick for attorney general once fought to keep refugees in Guantanamo Bay