A 2023 court decision that struck down Berkeley’s first-in-the-nation ban on gas hookups in new construction is part of what led to the ballot measure, an organizer said.