Biogas made from dairy and pig manure has long been an energy source non grata for environmental groups across the country.