Judge approves $85 million deal between Detroit, banks