A French court has approved bids for two slaughterhouses owned by ailing local pork firm Abattoirs Industriels de la Manche, saving 45% of the jobs at the business.