The Transportation Security Administration is defending its decision to confiscate a woman’s cupcake as she was going through airport security.