The U.S. and its allies have a lot to learn—and stand to pay an enormous price if they fail to do so.