Spain's Marc Marquez has secured a record-equalling eighth MotoGP premier class crown at the Portuguese Grand Prix, matching legendary Italian rider Giacomo Agostini.