A move to open a residential home for vulnerable children will now be allowed to go ahead after the council was overruled by a government inspector.