The House vote was successful already, but it remain the Senate. According to the news, Trump party control the Senate but what if they also vote the way the House vote. But Trump can still decide to use military action even if Senate vote against his military action in Iran.
The House resolution still needs approval from the Republican-controlled US Senate. Even if it were successful in the Senate, the measure is unlikely to fully curb military action against Iran.
Trump could veto the measure, which would require a two-thirds majority in both chambers to nullify.
https://www.bbc.com/news/articles/cj6pldg39deo