SunEdison secures final approval for bankruptcy deal