The prime minister says the government is talking to the EU over rule changes that could hit UK car plants.