Air traffic controllers gave a commercial flight from San Francisco permission to land as another plane took off.