Place onions, ginger, garlic and whole spices into a cheese cloth bundle and secure tightly.
Place chicken, water, salt, and the cheesecloth bundle in the inner liner of your instant pot.
Cook at high pressure for 10 minutes. Allow the pot to sit undisturbed for 10 minutes, and then release all remaining pressure.
Remove the cheesecloth bundle and discard.
Remove the chicken and break into large pieces.
You should have 1.5 cups of stock in your instant pot (use a measuring cup to be sure).
Leave 1.5 cups of stock in the pot for cooking the rice and reserve any remaining stock for a different recipe.
Make the rice
To the stock in your inner liner, add the rinsed long grain basmati rice, garam masala, ghee and salt. Push the rice down to ensure it is covered by the stock.
Lay the large shredded chicken pieces on top of the rice.
Cook at high pressure for 4 minutes. Allow the pot to sit undisturbed for 10 minutes, and then release all remaining pressure.
Mix lightly and serve.
You can also make this with beef or lamb if you prefer. If you cut the meat into large, bite-size pieces, you won't need to change cook times.