JPMorgan wins appeal against insurers over Bear Stearns settlement