A Pennsylvania federal judge gave initial approval Monday to a $40 million settlement between Vanguard and investors who claimed the firm breached its fiduciary duty when it triggered a sell-off of assets that left investors with hefty tax bills.