Murray left the government and parliament in February 1905, on being appointed
Lord Justice General and
Lord President of the Court of Session. He was raised to the peerage as
Baron Dunedin, of Stenton in the County of Perth, on 9 March 1905. He held these posts until 1913, when he was appointed a
Lord of Appeal in Ordinary. During his tenure as a Law Lord he gave long majority judgments in cases including Metropolitan Water Board v Dick Kerr & Co Ltd concerning frustration and Tredegar v. Harwood concerning a landlord's liability to insure premises, Ellerman Lines Ltd v Murray on employment law and excessive reliance on a preamble or draft international instrument, Sorrel v Smith concerning the tort of conspiracy to interfere with a trade or calling, Leyland Shipping Co Ltd v Norwich Union Fire Insurance Society Ltd on causation in tort,
Dunlop Pneumatic Tyre Co Ltd v New Garage & Motor Co Ltd on penalty clauses and Plumb v Cobden Flour Mills Co Ltd on employer's liability. In 1923 he was chairman of the Political Honours Review Committee. He retired as a Law Lord in 1932. Apart from his legal and political career, Lord Dunedin was
Sheriff of Perthshire between 1890 and 1891 and
Lord Lieutenant of Buteshire between 1901 and 1905. He was appointed a
Knight Commander of the Royal Victorian Order in 1908 and a
Knight Grand Cross of the Royal Victorian Order in 1922. In 1926 he was further honoured when he was made
Viscount Dunedin, of Stenton in the County of Perth. ==Family==