Sydney Trains says engineers worked through the night to inspect and rectify damage after severe weather brought down trees onto power lines, impacting energy supply to the network.