The House on Monday passed a bill allowing airlines to state costs of base airfare and government-imposed taxes and fees separately in advertisements.

Passed by voice vote, the measure would reverse a 2012 Department of Transportation rule that requires airlines to include taxes and fees in the advertised ticket prices. Instead, airlines would be able to explain which aspects of the costs are from government-imposed fees.

House Transportation Committee Chairman Bill ShusterWilliam (Bill) Franklin ShusterProvisions in FAA bill could strip endangered species protections This week: Senate barrels toward showdown over Pompeo Dems push Chao on aviation oversight after death on Southwest flight MORE (R-Pa.) said the change would make the airline ticket prices more transparent.

"This bill will allow airlines and travel agents to display the actual costs in a transparent way, in order to allow customers to see the base airfare and government taxes and fees," Shuster said. "It is only fair that consumers know what they are paying for."

Rep. Peter DeFazioPeter Anthony DeFazioOvernight Energy: Pruitt proposes rule targeting 'secret science' | Dems probe Pruitt's security chief | FAA bill provisions could strip endangered species protections Provisions in FAA bill could strip endangered species protections Dems question Pruitt over centralizing water pollution authority MORE (D-Ore.) said the 2012 rule was ultimately misguided.

"I would say that this was a nanny state rule in search of a problem that didn't exist that may have created a problem that does exist," DeFazio said.

DeFazio said the legislation would make improve the process of buying airline tickets.

"Consumers are pretty smart. We're not concealing anything here. Give us full and meaningful information," DeFazio said.

The Department of Transportation would be required to issue final rules to implement the changes within 120 days of the bill's enactment.