Lawmakers said the US commerce secretary had initially agreed to testify before reversing course earlier this week.