New Justice Secretary agrees deal to get criminal barristers back to work