Repairs to fix the ‘critical condition’ of historic Whitby Town Hall have been given the go-ahead.