Heat 2 tablespoons oil in a large pot over medium heat. Add cauliflower, garlic, and onion. Season with salt. Cook, covered, stirring occasionally, until tender, for 15 to 20 minutes. Add 4 cups water and simmer until vegetables are very soft, for 10 to 12 minutes. Drain, reserving 2 cups cooking liquid; let cool slightly.