The British Government will face "consequences" if it fails to secure a UK-wide approach to Brexit negotiations, the SNP's Westminster leader has warned.