Farmers have been hit hard by tariffs from China, Mexico, and elsewhere that have restricted their sales and slumped profits.