Theresa May will legally commit to ending Britain’s global warming contribution by 2050 – without caveats