Melbourne City has qualified for the AFC Champions League Elite knockout stages for the first time after a dramatic stoppage-time goal.