Developer to finish apartment construction after court ruling