A French court has accepted a rescue plan for ailing pork giant Gad involving around 900 job cuts.