'Essential' work is being carried out to 'increase court capacity'