The blunt-talking, retired Marine general defended the work of Homeland Security employees from immigration agents to airport security officers, saying they are unjustifiably maligned by critics as they enforce laws intended to keep America safe.