universities all have different levels of teaching.
a degree from a good university is worth more than a degree of the same class from a crap university.
don't take too much notice of league tables, they have issues. so just use them as a rough guide.
and its worth considering how well the department is viewed, not just the university.