In a largely partisan vote, the House voted down a bill that would have constrained President Trump's authorities in the conflict with Iran.