Future of Keystone XL pipeline hangs in balance with U.S. midterm elections