Former Vice President Mike Pence said he would comply with the law if he were compelled to testify in former President Donald Trump’s trial in the 2020 election case.