The attack by Houthi rebels against a civilian merchant ship came as the White House threatened a counter-attack.