The 30-year agreement sees the refiner financing a 10-mile pipeline and storage tank to access up to 8 million gallons per day of effluent, helping the city preserve dwindling potable supplies.