A premature baby boy who was born without kidneys had to spend almost 200 days in hospital before finally going home.