The House on Thursday approved a War Powers resolution that Democrats said would limit President Donald Trump’s ability to take military action against Iran.