 Special purpose acquisition companies targeted the renewable-energy industry; private-equity firms returned to focus on mounting cash piles, and Wall Street has rushed into electric car and truck startups. 