Three South Yorkshire councils have warned that new government legislation could add up to £14 million in extra costs for managing waste.