American Airlines announced on Tuesday that it has agreed to buy as many as 20 supersonic airliners — which have not yet gone into production — from startup Boom Technology.