Roman Catholics will be given the right to become lord high commissioner of the Church of Scotland general assembly.