A UK judge ruled that Prince Harry's lawsuit against The Sun tabloid could go to trial but threw out phone hacking allegations.