The court rejected his campaign’s appeal of a federal lawsuit filed in Pennsylvania that challenged the outcome of the 2020 election in a blistering opinion.