A one-year-old boy at the centre of a legal battle over whether his life-sustaining care should continue has died after a High Court judge ruled his treatment should stop.