Detroit reached a tentative settlement in a long-running tax assessment dispute stemming from a holding company’s gain from selling stock in a Canadian tobacco testing company, the city said in a court filing Tuesday.