The 226-195 vote is a sign of impatience with President Donald Trump’s approach to the war and represents the House’s second major foreign policy break with Mr. Trump this week