THE DECISION
The goal is awarded because the attacking team had a clear scoring opportunity, and the referee had not yet started the disciplinary sanction procedure. Since the quick free kick restored the previously 'lost' promising attack, the defender does not receive a second caution for the SPA offence.
Read official Law 12 ↗