The Energy Secretary has signed up to a legally binding goal to cut the UK's carbon emissions by 87per cent by 2040.