Conservatives fighting against alternative-energy mandates—which they see as unwarranted and costly market interference—are losing ground even in some Republican-controlled states, where legislatures are standing behind policies that force electric utilities to buy renewable energy.

Some of the most vocal support for the policies is coming from an unlikely corner: farmers who see profit in rural renewable-energy projects.

Of...