Alarmed by a spate of near-collisions involving airliners, the government is trying to find out why air traffic controllers and pilots are making so many dangerous errors.