NSW commits to supporting teachers