N.S. government paying $470M after court order