Denmark agrees on historic carbon dioxide tax