Even before the Capitol attack, Representative Swalwell had repeatedly come into conflict with President Trump.