In an impassioned speech that at times took on the tone of a campaign rally, Mr. Obama told an audience of 3,100 at the University of Hartford that he came to Connecticut to ensure that the deaths in the school in Newtown would not recede and to remind Americans how important their voice is as the gun debates unfold.