Pennsylvania accrued nearly $3.4 million in legal bills from a total of 24 election cases, some of which involved former President Trump's failed attempt to overturn the state's results.