Federal judges are poised to take on cases with major consequences for pipelines, power plants, and oil and gas leasing — just as the country prepares for the possibility of a new president with a different energy agenda.