Edinburgh’s minority Labour administration could face a motion of no confidence after a by-election loss reduced the party to just 11 councillors.