The UK joined the United States in banning passengers travelling from airports in several countries from bringing laptops, tablets and other portable electronic devices on board with them when they fly.