From California to Louisiana, ballot measures on climate and the environment gained voters’ approval. In state legislatures, results were mixed.