Atlas of clinically distinct cell states and ecosystems across human solid tumors