The collision of politics, trade and AI mania is threatening to derail U.S. renewable energy.