An unprecedented deluge in funding for the clean energy industry is spurring soaring demand for in-house legal talent at companies aiming to capitalize, from builders of solar farms to startups pursuing hydrogen breakthroughs.