The United Airlines flight was heading from Newark, New Jersey, to Los Angeles when the crew reported a security issue.