Pope Francis headed on Thursday to Varginha, one of Rio de Janeiro’s favelas, or shantytowns, where he got out of the Popemobile to walk to a soccer stadium to deliver a speech.