Plans for the conversion and repurposing of an old office building into 230 co-living homes in Leeds have been approved.