Such trading has already taken off in Europe in response to the Kyoto Protocol but not in the United States , where the government has shunned the global-warming treaty adopted in Kyoto , Japan , in 1998 , which officially went into effect in 2004 .