Amazon.com Inc. agreed to buy enough carbon-free hydrogen from Plug Power Inc. to run 30,000 forklifts or 800 long-haul trucks annually in a push to use less fossil fuel. Plug’s shares surged.