President Barack Obama said the NASA mathematician was a “pioneer who broke barriers of race and gender.”