Legal profession reacts to appointment of new PM and justice secretary