Backpack searches in schools, upheld by courts?

I’ve heard about random backpack searches or enforced backpack searches in schools, but I was wondering if any have been upheld in court? Also, if they have been upheld in court, was there any cases in California?