Why was Erling Haaland's goal for Man City against Man United allowed?

Wait 5 sec.

Erling Haaland gave 10-man Manchester City a stirring win over Manchester United. But should his decisive goal in the 1-0 victory have been allowed to stand?