Labour and Tories to share leadership of Aberdeen City Council after voting through rule change