Opposition was quickly coalescing on Wednesday to an executive order the US president was expected to issue that would create a pathway to restoring the detention of terrorism suspects at facilities known as “black sites”, formally ending Barack Obama’s thwarted order to close the Guantánamo Bay wartime prison.