I'm sure we both know that voters vote for representatives, not laws, so that question is not applicable. But in general, there has been popular support for things like "patriot act", and wars, as measured in polls.
Iraq war and patrioct act both saw more support than opposition in polls, when they happened (law passed, invasion was started).
Wars did get less popular when they went badly, so you can argue that they would have been shorter if public officials would have retreated when polls turned against them. But that's a separate discussion.