Lawmakers wanted to turn a potential enemy into a friend—instead, they squandered their leverage, in ways that shortchanged both nations.