Solicitors get permission to wear wigs