A developer has won local approval to repurpose a shuttered hospital complex in Plainfield, where it plans to invest $57 million to build 120 apartments and a new medical arts complex.