The U.S. Department of Agriculture finalized changes that could end support for solar on farms, sparking a lawsuit from farmer and environmental groups.