Plans to convert empty Newport office spaces into 112 student flats have been approved.