A landmark court building with planning permission for a luxury 11-storey apartment development has gone on the market.