LONDON—A London court on Friday rejected an attempt by the publisher of The Sun tabloid to throw out a lawsuit by actor Hugh Grant alleging that journalists and investigators it hired illegally snooped on him. Justice Timothy Fancourt said a trial will have to determine whether Rupert Murdoch’s News Group Newspapers (NGN) carried out unlawful…