SC declares Reko Diq mine deal legal