Wrong. The cops have wide discretion. They could have just let it go, no harm, no foul.
The kids should have just responded in Spanish. If the cops thought they were illegals, they would have given them a pass.