Scientists have discovered a bacterium that can produce hydrogen, an element that one day could lessen the world’s dependence on oil.