Hydrogen-based carbon fixation in the earliest known photosynthetic organisms