House Republicans rejected a push by some allies of President Donald Trump to include tax hikes on the rich in sweeping legislation they passed last week — a decision that could carry repercussions into next year’s elections.

The legislation House Republicans approved last week extends tax cuts Trump signed into law in 2017, cutting rates across income groups, including large benefits for the Americans who pay the highest share of federal income tax — those in the top 5 percent of the income distribution. The measure excluded a “millionaire tax,” and other proposals to raise taxes on top earners pitched by Stephen K. Bannon, the president’s first-term chief strategist, and other allies of the president.