The US ban on passengers carrying electronic devices larger than a smartphone into the interior of an airplane has been lifted for all but one airport.