Lehman says gay marriage ruling weakens foundation