Simone Biles edged Rebeca Andrade of Brazil during a tense all-around gymnastics final Thursday to become a two-time Olympic champion.