The men were the last remaining accused in the blasts that killed 31 persons and injured more than 300.