Complex sentence: Romani ancestors belonged to a Dom caste and their language came from Sanskrit and is related to modern Hindustani.
Split into simpler sentences: Romani ancestors belonged to a Dom caste. They used a language which had come from Sanskrit and was related to modern Hindustani.