California lawmakers pass bill to teach gay history