Passenger jets were placed on a collision course due to a flight-number mix-up over a US airport.