The automaker agreed to keep all 10 of its factories in Germany open and to guarantee workers’ jobs until the end of 2030.