Plans to revamp a historic building at the University of Huddersfield have been given the green light.