As state legislatures across the nation grapple with declining funding to maintain roads, bridges and other transportation infrastructure, California lawmakers are confronting the unintended consequences of policies aimed at achieving ambitious environmental goals.