His remarks prompted a heated exchange between lawmakers.