Britain’s new target to reach net zero greenhouse gas emissions by 2050 became law on Thursday, making it the first among the major G7 countries to set such a goal.