if you've got a very good supervisor then i don't think it matters that much, but undeniably, it does matter to some extent how good the uni is. in most cases after you get your first job after the phd, it becomes less important where you did it as long as you can prove yourself as being good in your field, either thro publishing or something like that.