Bipartisan measure, which passed 351-69, would raise pilots’ retirement age and recruit and train new air-traffic controllers.