Amid a forest of judicial appointments and other Trump administration confirmation votes, lawmakers pushing a bipartisan energy and natural resources bill in the Senate are still taking whacks in hope of moving legislation — or parts of it — before the end of this Congress.

The bill would represent the first major energy policy update in a decade, with provisions to bolster cybersecurity, speed up permits for energy infrastructure and promote energy efficiency. It could represent a rare opportunity for energy-state lawmakers to bring home some policy victories ahead of the midterm election.

But a shrinking Senate calendar, difficulty of reaching agreement with members of the House and the distraction of that coming election make the bill’s passage challenging.

“It’s clear there is a need and an imperative to advance some of this stuff,” said Sen. Lisa Murkowski of Alaska, the chairwoman of the Energy and Natural Resources Committee. “You mention the cyber, and gosh we got to be doing more, and we’ve teed it all up sitting there in that bill.”

The last major energy policy rewrite was in 2007, when the main concern was reducing the country’s reliance on foreign oil products and lowering consumer costs. An influx of natural gas from the fracking boom and the falling price of renewable technology has upended that scarcity mindset and replaced it with what the Trump administration has come to call an “energy dominance” mindset.