The NSW government has struck back at a class action over allegedly unlawful police strip searches at 50 music festivals, saying the state is immune from personal injury claims because police officers had a reasonable suspicion group members were in possession of illegal drugs.