The New South Wales Deputy Premier John Barilaro has declared "the Nats are back" after candidate David Layzell all but secured victory in the crucial upper Hunter by-election.