It’s not illegal to yell at the cops. What is illegal is for the cops to pull people over and check their papers when there is no suspicion of a crime. The only one here who broke the law is the cop.
Teach your kids the law. Teach your kids to stand up for their rights.