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