News Corp profits surge despite $167m hacking legal bill