COP26 agrees deal after coal backdown