General Motors's Bochum plant in western Germany will remain open, a senior official has said.