There are a number of different jurisdictions that have put targets into legislation. The United Kingdom did it for child poverty in 2010. In Canada, British Columbia is in the process of doing it right now. There are precedents for this.
On November 5th, 2018. See this statement in context.