(CNN) Lawmakers in the House passed a bill Friday to impose sweeping restrictions on flavored vaping and tobacco products.

The legislation, which would ban flavored tobacco products, including menthol-flavored vaping products and cigarettes, passed with a vote of 213-195.

The move comes after the White House announced a ban on most flavored vaping products last month. In a reversal from President Donald Trump's earlier position, the ban left menthol flavored products intact and permitted tank-based products to be available in vape shops in every flavor.

Health and Human Services Secretary Alex Azar described the plan as striking a balance, but the administration's decision against an even stricter ban faced criticism from congressional Democrats.

"A so-called flavor ban that exempts menthol and vape shops is no ban at all," New Jersey Democrat Rep. Frank Pallone Jr. said in a statement at the time. "Unfortunately, the Trump administration caved to industry lobbying pressure and decided to prioritize politics over people's health."

Read More