Prideaux, Edmund, Sir, Attorney-General