Battles have raged within the Trump administration over family separations, ICE raids and the president’s obsession with a wall. Together, they have remade homeland security.