California Gov. Gavin Newsom signed a bill Monday to ban school boards from rejecting textbooks based on their teachings about the contributions of people from different racial backgrounds, sexual orientations and gender identities.

Newsom called the measure “long overdue.”

“From Temecula to Tallahassee, fringe ideologues across the country are attempting to whitewash history and ban books from schools,” Newsom said in a statement. “With this new law, we’re cementing California’s role as the true freedom state: a place where families — not political fanatics — have the freedom to decide what’s right for them.”