The agreement will reduce the unprofitable office space company’s debt, giving it more financial breathing room.