The resignation came as Acting US Homeland Security Secretary Chad Wolf stepped down, three days after a court ruled that his appointment was unlawful.