Harold G. Hamm, the founder of the Oklahoma-based Continental Resources, and other oil and gas companies stand to profit from Donald Trump’s energy policies.