Automakers agree to 'right to repair' deal