The president tweeted Monday that he “terminated” Esper. In the days after the election, the Trump campaign has filed lawsuits in battleground states contesting the results.