The environmental, social and governance programs that many legal departments have been ramping up could take a hit as companies put resources elsewhere, according to a new survey by KPMG.