WASHINGTON — Senators on Wednesday reached a deal to act on a comprehensive energy bill as soon as this week, breaking a three-month partisan standoff over the tainted water scandal in Flint, Mich.

The bill, sponsored by Senator Lisa Murkowski, Republican of Alaska and chairwoman of the Senate Energy Committee, and Senator Maria Cantwell of Washington, the panel’s ranking Democrat, has broad bipartisan support and is expected to easily pass the Senate.

It represents the first major energy bill to come to the Senate floor since the Bush administration. A similar measure has passed in the House, and President Obama has signaled his support for it. The bill is designed to address major changes in the ways that power is produced in the United States by updating the nation’s power grid and oil and gas transportation systems.

But progress on the measure has been stalled since January, when Senator Debbie Stabenow, Democrat of Michigan, sought to offer an amendment that would have provided $600 million in aid to the victims of the Flint water crisis. Republicans opposed her, a position that Democrats said embodied a passion for smaller government gone bad.