President Obama is expected to sign executive orders Thursday directing the Central Intelligence Agency to shut what remains of its network of secret prisons and ordering the closing of the Guantánamo detention camp within a year, government officials said.