Government’s fracking policy ruled unlawful