Judge approves $120 million loan for Detroit