Creamy Mushroom and Spinach Pasta with Caramelized Onions