Saute onion in butter. Stir into hot rice along with yogurt, cottage cheese, and spices. In oiled casserole dish layer half the rice mixture, half the vegetables and half the grated cheese. Repeat layers, ending with grated cheese. Bake at 350°F for 20 minutes.