President Obama explained his rationale for closing the Guantánamo detention camp and assured relatives of terrorism victims that the suspects would be prosecuted.