A senior official with the Department of Homeland Security, who spoke on the condition of anonymity in keeping with agency policy, said the administration decided to end the program immediately to prevent a mass exodus that would risk lives at land and sea.