Planning permission to let residential apartments in Belfast as short-term holiday accommodation is to be quashed, a High Court judge has ruled.