Charities to share £2.2m from breakers of environmental laws