China announced the end of its hugely controversial one-child policy on Thursday, after decades of strict, sometimes brutal enforcement left it with an ageing population and shrinking workforce that has heightened the challenges of slowing economic growth.