London's mayor has consulted lawyers after a borough council decided to ban gay couples from holding partnership ceremonies on municipal property.