California’s first-in-the-nation gay history law will remain the law for public schools after a signature drive aimed at overturning it fell short for the second time in a year.