German government, opposition agree to amend budgetary rules so Berlin can achieve NATO defense spending target 'on average over several years'