New legislation places duty on NHS to tackle climate change