Plans to convert Wakefield's old coroner's court building into a 'creative hub' of studios and workshops have been given the green light.