The U.S. government says it stopped a plot to attack an airplane using underwear to smuggle a bomb on board.