‘The risk of catastrophic error was clear,’ Alejandro Mayorkas says