A woman who drove her car into a Sydney school, killing two children, has avoided prison after a judge described the incident as a “freakish accident”.