The first version of the order, which Trump signed on January 27, triggered howls of protest at home and abroad as well as chaos at US airports as people were detained upon arrival and either held for hours or sent back to where they came from.