The northeast English club qualified for European football for the first time in decades after a remarkable season.