ZF Friedrichshafen and Wolfspeed plan to build a $3 billion wafer factory in Germany’s Saarland to make chips for electric vehicles and other applications, a boon for a region dependent on combustion-engine components, according to people familiar with the matter.