Dice the onion, carrots, and celery into small, even pieces. Mince the garlic, rinse the lentils in a fine-mesh strainer, and set out the tomatoes, broth, and lemon.
Press Sauté on the Instant Pot and add the olive oil. Cook the onion, carrots, and celery for 6 to 8 minutes, stirring often, until the onion is soft and translucent.
Add the garlic, tomato paste, cumin, and thyme. Stir constantly for about 1 minute until the tomato paste darkens slightly and the spices smell warm and toasty.
Stir in the lentils, then add the diced tomatoes with juices, broth, bay leaves, salt, and pepper. Scrape up any browned bits from the bottom, keeping everything below the two-thirds fill line, then press Cancel.
Lock the lid, set the steam release handle to Sealing, and cook on High pressure for 15 minutes. Allow about 10 minutes for the pot to come to pressure.
Let the pressure release naturally for 10 minutes, then carefully turn the valve to Venting to release any remaining steam. Wait until the float valve drops before opening the lid.
Discard the bay leaves, then stir in the baby spinach for 1 to 2 minutes until wilted. Stir in the lemon juice and season with more salt and pepper to taste.
Ladle into warm bowls, sprinkle with chopped fresh parsley, and add an extra squeeze of lemon or a drizzle of olive oil if you like. Serve hot.