More nurses and ratios to be legislated under NSW Labor promise