Suppliers, dealing with a bumpy transition to electric vehicles, new regulations and rocky relationships with some of their customers, are turning to their lawyers to help them navigate issues related to contracts with automakers.