Countries back rewritten EU plan to raise carbon market cash