Rafael Benitez has given Newcastle a Premier League lifeline but should have been appointed sooner, says Alan Shearer.