At least nine thousand New South Wales court documents have been leaked after the state's online registry website was hit in a major data breach.