Adviser championed policies during president-elect’s first term that included separating migrants from their children