The politics of fracking — a process in which fluid is pumped into the ground at high pressure to shatter rock and release the gas inside — can be complicated, as Mr. Trump has learned. In July, he told a Colorado television reporter, “I’m in favor of fracking, but I think that voters should have a big say in it. … [I]f a municipality or a state wants to ban fracking, I can understand that.”