Long at odds with Trump, Defense Secretary Esper has prepared a resignation letter, say officials