G7 nations agreed to phase out coal-fired power plants by 2035, but Japan - which relies heavily on coal - was reluctant to set a date.