Press secretary Sean Spicer resigned after opposing Trump’s appointment of Anthony Scaramucci as communications director.