A decision to refuse plans for one of the largest student accommodation buildings in Northern Ireland has been overturned.