The recall ends a two-year effort by regulators to get Nissan to fix problems in the sensing system of the airbags.