Cook the pasta. Bring a large pot of salted water to a boil. Cook the pasta according to package instructions until al dente. Reserve ½ cup of pasta water before draining.
Brown the sausage. Heat olive oil in a large stainless-steel skillet over medium heat. Add sausage, breaking it into small pieces. Cook for approximately 6–8 minutes, until browned and fully cooked.
Add garlic and beans. Stir in minced garlic and cook for 30 seconds. Add cannellini beans and cook for another 2–3 minutes, stirring gently.
Wilt the spinach. Add fresh spinach in batches, tossing until just wilted.
Combine pasta and pesto. Reduce heat to low. Add cooked pasta and pesto, tossing gently. Add reserved pasta water, 1–2 tablespoons at a time, to create a silky sauce.
Add Parmesan. Remove the skillet from the heat. Sprinkle in ¼ cup freshly grated Parmesan and toss until evenly distributed. Add another splash of pasta water if necessary to keep the sauce creamy.
Finish with fresh basil. Top with torn basil leaves, black pepper, and additional Parmesan if desired. Add a squeeze of lemon if desired. Serve immediately.