A 26-year-old truck driver has been charged after allegedly almost hitting two school girls in Sydney.