Court orders UK media firm to pay phone-hacking victims