The new feature on a U.S. Customs and Border Protection app allows undocumented migrants “a chance to leave before facing harsher consequences,” the agency’s head said.