Labour polls poorly now because it is taking unpopular decisions, but history points to a second term in power