President Obama’s choice to be transportation secretary, Mayor Anthony Foxx of Charlotte, N.C., zipped through a confirmation hearing on Wednesday before the Senate Commerce, Science and Transportation Committee. He was questioned on many points but pushed to make promises on nothing more than working cooperatively with Congress, putting safety first, trying to maintain air traffic control tower staffing, and visiting the site of the recent commuter train accident in Bridgeport, Conn.