WASHINGTON  Bowing to political pressure from community bankers, the House Financial Services Committee approved an exemption on Thursday for more than 98 percent of the nation’s banks from oversight by a new agency created to protect consumers from abusive or deceptive credit cards, mortgages and other loans.

The carve-out in legislation overhauling the regulatory system would prevent the new consumer financial protection agency from conducting annual examinations of the lending practices at more than 8,000 of the nation’s 8,200 banks, leaving only the largest banks and other lenders subject to the agency’s examiners.

Earlier in the day, the committee completed its work on a different contentious provision of the legislation when, on a nearly straight party-line vote of 43 to 26, it approved tougher regulations over the derivatives market. That provision, too, contained exemptions for many businesses.

The exemption for the banks was endorsed by the chairman, Representative Barney Frank of Massachusetts, who saw it as necessary to win support for the overall bill from the committee’s moderate and conservative Democrats. Their support is particularly important because the Republicans are unified against the legislation.