A week after the automaker announced it was considering closing factories in Germany, the company said it was exiting a labor contract that protected workers from layoffs.