WASHINGTON — Voters are determining whether the next president enters office with a friendly Congress or a hostile one set on blocking their policies and nominees — and as the election roars into its last moments it’s still very unclear what the makeup of the House and Senate might be. Most House races are not competitive. But House leaders are closely watching about two dozen toss-up contests to see whether Democrats or Republicans end up with the magic 218 lawmakers needed to control the speaker’s gavel, the agenda and the floor schedule.

The GOP’s razor-thin majority during the last two years created significant obstacles for leadership’s legislative goals and ended Kevin McCarthy’s speakership. Neither political party is expected to gain a large House majority during the next Congress, set to begin in January. There’s even a possibility the majority party has less wiggle room than the 220-212 split that currently exists, along with three vacancies.

Experts warn it may not be known on election night or for some time who’s won the House. Senate leaders have been equally focused on hard-fought and close campaigns in Arizona, Michigan, Montana, Nevada, Ohio, Pennsylvania and Wisconsin. Any one of them could deliver control of the upper chamber.

Republicans are favored to turn over the West Virginia seat occupied by Joe Manchin III, potentially pushing them past the 50-member benchmark if they hold onto seats occupied by incumbents Ted Cruz in Texas, Deb Fisc.