Baked pasta with spinach and mushrooms