As oil and gas companies run out of places to dispose of their wastewater, Texas regulators are drafting permits to treat and reuse it outside the oilfields.