In the haste to legislate green-building mandates, many local governments have failed to consider the legal ramifications of their regulatory regimes.