Defense of Marriage Act is actually an exception. The people supporting it honestly thought it was defending marriage, and the supportive public knew exactly what it did.
It passed with a veto proof majority a few weeks before a presidential election, received tons of press, and nobody was confused about what it did.
Whereas the Inflation Reduction Act had absolutely nothing to do with reducing inflation.