The Customs and Border Protection commissioner, Chris Magnus, has refused to step down, exposing conflicts at the Homeland Security Department over how to manage a high number of illegal border crossings.